コード例 #1
0
        public async Task <IActionResult> IsPostTitleUnique(Guid id, string title)
        {
            var isPostTitleUnique = await _postRules.IsTitleUniqueAsync(BlogId, id, title);

            return(Ok(isPostTitleUnique));
        }
コード例 #2
0
 private async Task <bool> HaveUniqueTitle(PostDetailsBase command, string title, CancellationToken cancellationToken)
 {
     return(await _postRules.IsTitleUniqueAsync(command.BlogId, command.AggregateRootId, title));
 }