예제 #1
0
        void ICommentBusinessLogic.Patch(CommentPatchDto comment)
        {
            Comment updatedComment = commentRepository.GetById(comment.Id);

            if (updatedComment == null)
            {
                return;
            }
            mapper.Map <CommentPatchDto, Comment>(comment, updatedComment);

            commentRepository.Update(updatedComment);
            commentRepository.SaveChanges();
        }
 public async Task <CommentModel> PatchCommentAsync(CommentPatchDto dto)
 {
     throw new System.NotImplementedException();
 }