Exemple #1
0
        public IHttpActionResult Comment(CommentDto dto)
        {
            var userId = User.Identity.GetUserId();

            _commentRepository.Comment(dto.Comment, dto.IdeaId, userId);

            return(Ok());
        }
Exemple #2
0
 public ActionResult <CommentDto> Create([FromBody] CommentDto dto)
 {
     return(Ok(_repository.Comment(dto)));
 }
Exemple #3
0
 public async Task <ActionResult <CommentDto> > Create([FromBody] CommentDto dto)
 {
     return(Ok(await _repository.Comment(dto)));
 }