public void DeleteDepartment(int id) { DepartmentRepository repository = new DepartmentRepository(); repository.DeleteById(id); }