private async Task UpdateTag(Tag tag, int totalCount) { tag.ArticleCount = totalCount; var updatedTag = await _tagBL.UpdateTag(tag); if (updatedTag.Details.ResultStatus == ResultStatus.Success) { _logger.LogInformation( "Updated {tagId} articleCount from {initialTagArticleCount} to {updatedTagArticleCount}", tag.TagId, tag.ArticleCount, updatedTag.Data.ArticleCount); } else { _logger.LogWarning("There was a problem updating {@tag} with a count of {articleCount}", tag, totalCount); } }