Example #1
0
 public Sys_Dept GetModel(int Id)
 {
     Sys_Dept entity = new Sys_Dept();
     entity.Id = Id;
     Sys_Dept model = new Helper().Find(entity);
     return model;
 }
Example #2
0
 public ActionResult Update(Sys_Dept entity)
 {
     ErrorResult result = new Sys_DeptDAL().Update(entity);
     return Json(result);
 }
Example #3
0
 public ActionResult Add(Sys_Dept entity)
 {
     entity.DeptLever = 0;
     ErrorResult result = new Sys_DeptDAL().Insert(entity);
     return Json(result);
 }
Example #4
0
 public ErrorResult Update(Sys_Dept entity)
 {
     ErrorResult result = new Helper().Update(entity);
     return result;
 }
Example #5
0
 public ErrorResult Insert(Sys_Dept entity)
 {
     ErrorResult result = new Helper().Insert(entity);
     return result;
 }