public Task <Guid> AddCommentAsync(DomainComment domainComment) { Guard.IsNotNull(domainComment, nameof(domainComment)); try { var commentsCollection = this.database.GetCollection <Comment>(Constants.COMMENTS_COLLECTION); var comment = this.mapper.Map <Comment>(domainComment); commentsCollection.InsertOne(comment); return(Task.FromResult(comment.CommentId)); } catch (Exception e) { this.logger.LogError(e, e.Message); throw; } }
public Task UpdateCommentAsync(DomainComment comment) { throw new NotImplementedException(); }
public Task <PolicyResult> UpdateCommentAsync(Domain.Comments.Comment comment) { throw new NotImplementedException(); }