public ActionResult GetData(ProvinceCriteria c) { var m = new LigerGridModel(); this.BeforeGetData(c); var r = this.Service.FindByCriteria(c); this.AfterGetData(m, c, r); m.Total = r.RecordCount; r.Data.ForEach(o => { this.AddRowToGridModel(m, o); }); this.AfterBuildGridModel(m, c, r); return this.Json(m, JsonRequestBehavior.AllowGet); }
partial void AfterGetData(LigerGridModel gm, ProvinceCriteria c, PagedModel<Province> pm);
partial void BeforeGetData(ProvinceCriteria c);
partial void AfterBuildGridModel(LigerGridModel gm, ProvinceCriteria c, PagedModel<Province> pm);