public Task <int> AddCommentToPostAsync(DomainComments.Comment domainComment)
        {
            var dataComment = _mapper.Map <Comment>(domainComment);

            var commentRepository = _unitOfWork.GetRepository <Comment>();

            commentRepository.Insert(dataComment);

            return(_unitOfWork.SaveChangesAsync());
        }
示例#2
0
 public async Task UpdateCommentAsync(DomainComment comment)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public async Task <Guid> AddCommentAsync(DomainComment comment)
 {
     throw new NotImplementedException();
 }