public async Task <StatusCodes> DeleteItemAsync(string id, string requestId = "") { _logger.LogInformation($"RequestId: {requestId} - Industry_DeleteItemAsync called."); Guard.Against.NullOrEmpty(id, nameof(id), requestId); try { var result = await _industryRepository.DeleteItemAsync(id, requestId); Guard.Against.NotStatus204NoContent(result, $"Industry_DeleteItemAsync failed for id: {id}", requestId); return(result); } catch (Exception ex) { _logger.LogError($"RequestId: {requestId} - Industry_DeleteItemAsync Service Exception: {ex}"); throw new ResponseException($"RequestId: {requestId} - Industry_DeleteItemAsync Service Exception: {ex}"); } }