public void RemoveCustomer(int customerId) { var customer = new CustomerEntity(customerId); if (!customer.HaveProject()) { //// remove customer } }