Пример #1
0
        public virtual async Task UpdateAsync(BlogPost blogPost)
        {
            await CheckBlogExistenceAsync(blogPost.BlogId);

            await BlogPostRepository.UpdateAsync(blogPost);
        }
Пример #2
0
        public async Task SetSlugUrlAsync(BlogPost blogPost, string newSlug)
        {
            await CheckSlugExistenceAsync(blogPost.BlogId, newSlug);

            blogPost.SetSlug(newSlug);
        }