コード例 #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));
 }