I am trying to create an api for a movie guide mobile application, now i need to return json to the user containing information about the movie.
my request url is
/mobile/details/{id}
following is the controller:
public ActionResult Details(int id)
{
return View(kr.GetMovie(id));
}
GetMovie(id) returns an object of type Movie to the view which contains all the info;