public async Task Delete(BaseViewModel <TEntity> viewModel) { if (viewModel.Model == null) { return; } await Repository.DeleteAsync(viewModel.Model.Id).ConfigureAwait(false); }
public async Task HandleAsync(QuoteRiskDeleteCommand command) { await riskRepository.DeleteAsync(command.PolicyId); }