Beispiel #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;
 }
Beispiel #2
0
 public ActionResult Update(Sys_Dept entity)
 {
     ErrorResult result = new Sys_DeptDAL().Update(entity);
     return Json(result);
 }
Beispiel #3
0
 public ActionResult Add(Sys_Dept entity)
 {
     entity.DeptLever = 0;
     ErrorResult result = new Sys_DeptDAL().Insert(entity);
     return Json(result);
 }
Beispiel #4
0
 public ErrorResult Update(Sys_Dept entity)
 {
     ErrorResult result = new Helper().Update(entity);
     return result;
 }
Beispiel #5
0
 public ErrorResult Insert(Sys_Dept entity)
 {
     ErrorResult result = new Helper().Insert(entity);
     return result;
 }