public JsonResult LanguageData(SearchPackage searchPackage) { var dataBuilder = new SearchPackageDataBuilder <LanguageRecord>(searchPackage, _queries.GetLanguageRecords()); var data = dataBuilder .Map(r => r.Code, r => new object[] { r.Code, r.Name, r.NativeName, r.Status, r.Licensee, r.Brand, r.CreatedBy, r.Created, r.UpdatedBy, r.Updated, r.ActivatedBy, r.Activated, r.DeactivatedBy, r.Deactivated }) .GetPageData(r => r.Created); return(new JsonResult { Data = data, MaxJsonLength = int.MaxValue, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }