예제 #1
0
 private async Task <bool> HaveUniqueSlug(PostDetailsBase command, string slug, CancellationToken cancellationToken)
 {
     return(await _postRules.IsSlugUniqueAsync(command.BlogId, command.AggregateRootId, slug));
 }
예제 #2
0
 private async Task <bool> HaveUniqueTitle(PostDetailsBase command, string title, CancellationToken cancellationToken)
 {
     return(await _postRules.IsTitleUniqueAsync(command.BlogId, command.AggregateRootId, title));
 }