Ejemplo n.º 1
0
 public ActionResult Edit(Product model)
 {
     try
     {
         var biz = new ProductBiz();
         model.LastUpdated = DateTime.Now;
         biz.Edit(model);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         return(View(model));
     }
 }