Ejemplo n.º 1
0
 public ActionResult SaveProduct(ISPProductViewModel model, HttpPostedFileBase upload)
 {
     if (ModelState.IsValid)
     {
         var result = repo.SaveProduct(model.ISPProduct, upload);
         return(RedirectToAction("Index"));
     }
     return(RedirectToAction("CreateProduct"));
 }
Ejemplo n.º 2
0
 public void SaveProduct(ISPProduct model, HttpPostedFileBase upload)
 {
     ispRepo.SaveProduct(model, upload);
 }