public bool UpdateDepart(int id, string name, string sys) { var model = new DepartDao().UpdateDeprt(id, name, sys); if (model) { return(true); } else { return(false); } }
public bool DeleteDepart(int id) { var model = new DepartDao().DeleteDepart(id); if (model) { return(true); } else { return(false); } }
public bool InsertDepart(string name, string sys) { var model = new DepartDao().InsertDeprt(name, sys); if (model) { return(true); } else { return(false); } }
public DataTable GetAllDepartTable() { DataTable dt = new DepartDao().findAllDepTable(); return(dt); }
public List <Depart> GetALLDepart() { List <Depart> departlist = new DepartDao().findAll(); return(departlist); }