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)); } }
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)); } }