Esempio n. 1
0
        public async Task <CommentResultDto> RejectCommentAsync(long id)
        {
            var comment = await _repository.FindAsync(id);

            comment = await _factory.RejectCommentAsync(comment);

            await _repository.UpdateAndSaveAsync(comment);

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