//______________________________________________________________________________________ /// <summary> /// Product/Cart /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult DecrementQuantityFront(int id) { try { ShoppingCartImplementation.ReduceFromCart(id, @User.Identity.Name); return(RedirectToAction("Index", "Product")); } catch (Exception ex) { return(RedirectToAction("Index", "Product")); } }
//______________________________________________________________________________________ /// <summary> /// Product/Cart /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult DecrementQuantityFront(int id) { try { ShoppingCartImplementation.ReduceFromCart(id, @User.Identity.Name); return(RedirectToAction("Index", "Product")); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "UI Policy"); if (rethrow) { throw; } return(RedirectToAction("Index", "Product")); } }