public JsonResult List(int page = 1, string searchKey = "") { var result = _bookCategoryService.GetAllWithPageListSearch(page, 12, searchKey); return(Json(new { data = result.Select(x => new { CategoryID = x.CategoryID, CategoryName = x.CategoryName, SeoTitle = x.SeoTitle, MetaKeywords = x.MetaKeywords, MetaDescription = x.MetaDescription, Status = x.Status, CreatedDate = x.CreatedDate, CreatedBy = x.CreatedBy, ShowOnHome = x.ShowOnHome }), pageNumber = result.PageCount, keyword = searchKey }, JsonRequestBehavior.AllowGet)); }