public void Delete(string departmentID) { using (PersistentManager pm = new PersistentManager()) { DepartmentDao departmentDao = new DepartmentDao(); departmentDao.DeleteEntity(departmentID); } }
public bool Delete(DataSet dataSet) { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { DepartmentDao dao = new DepartmentDao(); dao.DeleteEntity(dataSet); flag = true; } return(flag); }