public void Delete(PaymentEntity payment) { if (payment.ID != 0) { _paymentRepository.Detele(payment.ID); } else { throw new Exception("Nothing to delete!"); } }