Beispiel #1
0
 public JsonResult AddNewPhoto(Photo photo, PhotoLang photoLang, List<PhotoDetail> detail, List<PhotoDetailLang> detailLang)
 {
     if (_session.IsLogin && _session.IsStore && _session.IsAdmin)
         {
             IPhoto _cls = new PhotoBO();
             var IsResult = _cls.AddNewPhoto(photo, photoLang, detail, detailLang);
             return Json(new { IsOk = IsResult }, JsonRequestBehavior.AllowGet);
         }
         else
             RedirectToAction("index", "backend");
         return Json("[]", JsonRequestBehavior.AllowGet);
 }
Beispiel #2
0
 public JsonResult SaveVideo(Photo photo, PhotoLang photolang)
 {
     IPhoto cls = new PhotoBO();
         bool IsResult = cls.SaveVideo(photo, photolang);
         return Json(new { IsOk = IsResult }, JsonRequestBehavior.AllowGet);
 }