コード例 #1
0
        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
            }));
        }
コード例 #2
0
        // 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));
        }