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