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