Exemplo n.º 1
0
        public IHttpActionResult PostComment(CommentDto dto)
        {
            var    commentId = service.AddComment(dto, User.Identity.GetUserId <int>());
            string location  = Request.RequestUri + "/" + commentId;

            return(Created(location, commentId));
        }