public IHttpActionResult Comment(CommentDto dto) { var userId = User.Identity.GetUserId(); _commentRepository.Comment(dto.Comment, dto.IdeaId, userId); return(Ok()); }
public ActionResult <CommentDto> Create([FromBody] CommentDto dto) { return(Ok(_repository.Comment(dto))); }
public async Task <ActionResult <CommentDto> > Create([FromBody] CommentDto dto) { return(Ok(await _repository.Comment(dto))); }