public async Task <JsonResult> Get(string keyword, int page, int totalRecords) { var result = svs.GetGalleriesByPage(keyword, page, _appSettings.TotalRecordPerPage, _appSettings.App_Identity.Identity); return(new JsonResult(result, new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore })); }
// GET: Galleries public ActionResult Index(string keyword, int page, int totalRecords) { var result = svs.GetGalleriesByPage(keyword, page, _appSettings.TotalRecordPerPage, _appSettings.App_Identity.Identity); return(View(result)); }