public Task Delete(int id) { try { _repository.Delete(id); return(Task.CompletedTask); } catch (Exception ex) { _logger.LogError(ex, ex.Message); throw ex; } }
public IActionResult DeleteDealer(int dealerId) { _dealerRepo.Delete(dealerId); return(Ok($"Deleted : true")); }
public void DeleteDealer(Guid dealerId) { dealerRepository.Delete(dist => dist.UserId == dealerId); }