示例#1
0
        public ActionResult <Review> Post([FromBody] Review review)
        {
            int id = Convert.ToInt32(TokenModel.ReadClaimFromRequest(Request, "id"));

            review.IdUser = id;
            return(Ok(ReviewDAO.Create(review)));
        }