Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public Task UpdateCommentAsync(DomainComment comment)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public Task <PolicyResult> UpdateCommentAsync(Domain.Comments.Comment comment)
 {
     throw new NotImplementedException();
 }