Exemplo n.º 1
0
        public ActionResult Index()
        {
            MoviesView mService = new MoviesView();
            var        result   = mService.getMaster();

            return(View(result));
        }
Exemplo n.º 2
0
        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);
        }