public void Delete(UpdateInsuranceCommand updatedInsuranceCommand, int id)
        {
            var repo             = new InsuranceRepository();
            var updatedInsurance = new Insurance
            {
                Provider = updatedInsuranceCommand.Provider,
                TypeId   = updatedInsuranceCommand.TypeId,
            };

            repo.DeleteInsurance(updatedInsurance, id);
        }
示例#2
0
 public bool DeleteInsurance(InsuranceDeleteRequest request)
 {
     return(_insuranceRepository.DeleteInsurance(request));
 }