示例#1
0
 public JsonResult CreateReview(Review review)
 {
     if (ModelState.IsValid)
     {
         if (_review.CrateReview(review) == true)
         {
             return(Json(JsonResultResponse.ResponseSuccess(review)));
         }
     }
     return(Json(JsonResultResponse.ResponseFail("User reviewed. Not Comment")));
 }