public async Task <StatusCodes> UpdateItemAsync(IndustryModel modelObject, string requestId = "") { _logger.LogInformation($"RequestId: {requestId} - Industry_UpdateItemAsync called."); Guard.Against.Null(modelObject, nameof(modelObject), requestId); Guard.Against.NullOrEmpty(modelObject.Id, nameof(modelObject.Id), requestId); try { var entityObject = MapToEntity(modelObject, requestId); var result = await _industryRepository.UpdateItemAsync(entityObject, requestId); Guard.Against.NotStatus200OK(result, "Industry_UpdateItemAsync", requestId); return(result); } catch (Exception ex) { _logger.LogError($"RequestId: {requestId} - Industry_UpdateItemAsync Service Exception: {ex}"); throw new ResponseException($"RequestId: {requestId} - Industry_UpdateItemAsync Service Exception: {ex}"); } }