예제 #1
0
 public async Task AddCommentAsync(string publicationId, string author, string content)
 {
     await commentsApi.CreateAsync(new CreateCommentModel(publicationId, content, authorId : author));
 }
        public async Task <PublicationComment> PublishAsync(string content, string publicationId, string userId)
        {
            var comment = await commentsApi.CreateAsync(new CreateCommentModel(KeysBuilder.PublicationCommentKey(publicationId), content, authorId : userId));

            return(ToDomain(comment, publicationId));
        }