Esempio n. 1
0
 public ActionResult Add(UserInGroup 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
 public void Delete(UserInGroup entity)
 {
     this.Repository.Delete(entity);
     this.Db.Save();
 }
Esempio n. 3
0
 public void Add(UserInGroup entity)
 {
     this.Repository.Add(entity);
     this.Db.Save();
 }
Esempio n. 4
0
 public void Update(UserInGroup entity)
 {
     this.Repository.Update(entity);
     this.Db.Save();
 }
Esempio n. 5
0
 public void Save(UserInGroup entity)
 {
     if(entity.Id==0){
         this.Add(entity);
     }else{
         this.Db.Save();
     }
 }
Esempio n. 6
0
partial         void BeforeUpdateData(UserInGroup e, ref ActionResult ar);
Esempio n. 7
0
partial         void BeforeShowEditView(UserInGroup e);
Esempio n. 8
0
partial         void BeforeAddData(UserInGroup e, ref ActionResult ar);
Esempio n. 9
0
partial         void AfterUpdateData(UserInGroup e, ref ActionResult ar);
Esempio n. 10
0
partial         void AfterAddData(UserInGroup e, ref ActionResult ar);
Esempio n. 11
0
partial         void AddRowToGridModel(LigerGridModel m, UserInGroup e);