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); }
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)); }
public async Task Reply(CreateReplyInput input) { var reply = input.MapTo <Reply>(); await interactionManager.ReplyCommentAsync(reply); }