public async Task <IActionResult> Delete(int id) { try { await _deleteService.DeleteAsync(id); return(NoContent()); } catch (EntityNotFoundException exception) { return(NotFound(exception.Message)); } catch (Exception exception) { _exceptionLogger.LogException(exception, nameof(SuppliersController), _logger); throw; } }