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

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

            commentRepository.Insert(dataComment);

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