public bool Delete() { bool result = false; try { if (this.DepartmentId > 0) { result = (new DepartmentsDAO()).Delete(this); } } catch (System.Exception ex) { result = false; throw ex; } return result; }