public ActionResult Index() { MoviesView mService = new MoviesView(); var result = mService.getMaster(); return(View(result)); }
public JsonResult MasterList() { MoviesView mService = new MoviesView(); var result = mService.getMaster(); var Obj = new { data = result }; var jsonResult = Json(Obj, JsonRequestBehavior.AllowGet); jsonResult.MaxJsonLength = int.MaxValue; jsonResult.ContentType = "application/json"; jsonResult.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8"); return(jsonResult); }