Esempio n. 1
0
        public async Task Create(CreateReplyInput input)
        {
            Reply output = input.MapTo <Reply>();
            //Poster check = input.MapTo<Poster>();
            //Thread threadcheck = input.MapTo<Thread>();


            await _replyRepository.InsertAsync(output);
        }
Esempio n. 2
0
        public async Task <EntityDto <long> > CreateReply(CreateReplyInput input)
        {
            var currentUser = await GetCurrentUserAsync();

            var comment = await _commentManager.GetAsync(input.CommentId);

            var reply = await _replyManager.CreateAsync(Reply.Create(input.Content, comment, currentUser));

            return(new EntityDto <long>(reply.Id));
        }
Esempio n. 3
0
 public async Task Reply(CreateReplyInput input)
 {
     var reply = input.MapTo <Reply>();
     await interactionManager.ReplyCommentAsync(reply);
 }