public IActionResult WareHouseAreaListJson(string areaname, string areacode, int page = 1, int limit = 10) { var searchModel = new SearchWareHouseAreaContext { AreaName = areaname, AreaCode = areacode, PageIndex = page, PageSize = limit }; var pageData = _wareHouseService.GetWareHouseAreaViewModels(searchModel); return(Json(new { draw = 1, recordsTotal = pageData.TotalCount, recordsFiltered = pageData.TotalCount, data = pageData })); }