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