Пример #1
0
 public ActionResult SaveGalleries(ProductGallery data)
 {
     /*return Json(data, JsonRequestBehavior.AllowGet);*/
     if (data.GalleryID == 0)
     {
         ProductService.AddGallery(data);
     }
     else
     {
         ProductService.UpdateGallery(data);
     }
     return(RedirectToAction("Edit", new { id = data.ProductID }));
     /*return RedirectToAction("Index", "Products");*/
 }