public async Task <IActionResult> IsPostTitleUnique(Guid id, string title) { var isPostTitleUnique = await _postRules.IsTitleUniqueAsync(BlogId, id, title); return(Ok(isPostTitleUnique)); }
private async Task <bool> HaveUniqueTitle(PostDetailsBase command, string title, CancellationToken cancellationToken) { return(await _postRules.IsTitleUniqueAsync(command.BlogId, command.AggregateRootId, title)); }