public ActionResult Add(QualificationUnrestrictedUser 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(QualificationUnrestrictedUser e, ref ActionResult ar);
partial void AfterAddData(QualificationUnrestrictedUser e, ref ActionResult ar);
partial void BeforeShowEditView(QualificationUnrestrictedUser e);
partial void AddRowToGridModel(LigerGridModel m, QualificationUnrestrictedUser e);