Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "ID,Name_Product,Description,Price,Link_Image,Category")] ProductEntity productEntity)
 {
     if (ModelState.IsValid)
     {
         using (Repository <ProductEntity> rep = new RepositoryProduct())
         {
             rep.Update(productEntity);
             rep.SaveAll();
         }
         return(RedirectToAction("Index"));
     }
     return(View(productEntity));
 }