示例#1
0
        public async Task <Entities.Comments> UpdateCommentsAysnc(Entities.Comments comments)
        {
            var res = await _unitOfWork.CommentsRepository.UpdateAsync(comments);

            //_unitOfWork.CommentsRepo.SaveChangesAsync();
            return(res);
        }
 public async Task <Entities.Comments> UpdateCommentsAsync([FromBody] Entities.Comments comments)
 {
     return(await _commentsService.UpdateCommentsAysnc(comments));
 }