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); }
public bool DeleteInsurance(InsuranceDeleteRequest request) { return(_insuranceRepository.DeleteInsurance(request)); }