Пример #1
0
        public async Task <CommentResultDto> ApproveCommentAsync(long id)
        {
            var comment = await _repository.FindAsync(id);

            comment = await _factory.ApproveCommentAsync(comment);

            await _repository.UpdateAndSaveAsync(comment);

            return(await GetResultByIdAsync(comment.Id));
        }