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; }
partial void BeforeUpdateData(SchoolAd e, ref ActionResult ar);
partial void BeforeShowEditView(SchoolAd e);
partial void BeforeAddData(SchoolAd e, ref ActionResult ar);
partial void AfterUpdateData(SchoolAd e, ref ActionResult ar);
partial void AfterAddData(SchoolAd e, ref ActionResult ar);
partial void AddRowToGridModel(LigerGridModel m, SchoolAd e);