public ActionResult Edit(Product product) { try { Repository.Save(product); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Edit(Product product) { try { Repository.Save(product); Logger.Info(string.Format("Somebody edited Product ID {0}", product.ProductID.ToString())); return RedirectToAction("Index"); } catch { return View(); } }