Example #1
0
        private async Task UpdateTagIdsOfBlogPost(BlogPost newBlogPost)
        {
            var currentBlogPost = await _blogPostRepository.GetBlogPostById(newBlogPost.Id);

            await _tagBL.CreateOrFindTags(newBlogPost.TagIds);

            await _tagBL.AdjustTagCounts(currentBlogPost.TagIds, newBlogPost.TagIds);
        }