示例#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);
        }