Esempio n. 1
0
 public ActionResult Add(SchoolAd e)
 {
     ActionResult ar = null;
     try {
         this.BeforeAddData(e, ref ar);
         if (ar == null) {
             this.Service.Add(e);
             e = this.Service.FindById(e.Id);
             //ar = this.Json(new AjaxOperationResult { Data = e, Successful = true });
             this.AfterAddData(e, ref ar);
         }
     } catch (Exception ex) {
         ar = this.Json(new AjaxOperationResult { Successful = false, Message = ex.Message });
     }
     return ar;
 }
Esempio n. 2
0
partial         void BeforeUpdateData(SchoolAd e, ref ActionResult ar);
Esempio n. 3
0
partial         void BeforeShowEditView(SchoolAd e);
Esempio n. 4
0
partial         void BeforeAddData(SchoolAd e, ref ActionResult ar);
Esempio n. 5
0
partial         void AfterUpdateData(SchoolAd e, ref ActionResult ar);
Esempio n. 6
0
partial         void AfterAddData(SchoolAd e, ref ActionResult ar);
Esempio n. 7
0
partial         void AddRowToGridModel(LigerGridModel m, SchoolAd e);