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)); }