Пример #1
0
        [ValidateInput(false)]//可以提交富文本
        public ActionResult Edit(Photos photo)
        {
            int count = GalleryService.EditPhotos(photo);

            if (count >= 1)
            {
                return(Json(new UIResult(true, "编辑成功")));
            }
            else
            {
                return(Json(new UIResult(false, "编辑失败")));
            }
        }