This project is read-only.

ApiController added to Tutorial5

Topics: blog, faq
Jul 30, 2014 at 3:02 PM
Edited Aug 1, 2014 at 11:39 AM
Hi,

I'm trying to create an app that access a database and returns values to a html page and i'm doing it like tutorial5 from the source code.

In my case i have the first controller 'UserController.cs' and i have another controller that when my javascript and angularjs make a request should return the info, but i can't put it to work.

Do i have to add it to my application so it can be recognized?
That controller is an ApiController.

Thanks for your help

Update:

I found my problem, i need to add my Controller functions to the Controller that i'm indicating in my application.cs.
But now i can't receive and send the data (Json) because i'm returning an object and a HttpResponseMessage. Is there a way to fix this?