Пример #1
0
        public async Task Handle(AddCommentCommand notification, CancellationToken cancellationToken)
        {
            var comment = new Comment
            {
                CreatedDate = DateTime.Now,
                UserUuid    = notification.UserUuid,
                Text        = notification.Text,
                PostUuid    = notification.PostUuid,
                Uuid        = Guid.NewGuid().ToString()
            };

            await _repo.AddComment(comment);
        }