Esempio n. 1
0
        public JsonResult CreateReview(AddProductReviewRequestViewModel request)
        {
            bool result = CustomerManager.AddReview(request);

            if (result)
            {
                return(Json(new AjaxResult()
                {
                    Success = true, Data = "发布评论成功!"
                }));
            }
            else
            {
                return(Json(new AjaxResult()
                {
                    Success = false, Data = "发布评论失败!请稍后再试."
                }));
            }
        }