Esempio n. 1
0
 public ActionResult GetData(SchoolAdCriteria 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);
 }
Esempio n. 2
0
partial         void AfterGetData(LigerGridModel gm, SchoolAdCriteria c, PagedModel<SchoolAd> pm);
Esempio n. 3
0
partial         void BeforeGetData(SchoolAdCriteria c);
Esempio n. 4
0
partial         void AfterBuildGridModel(LigerGridModel gm, SchoolAdCriteria c, PagedModel<SchoolAd> pm);