public ActionResult Delete(string name) { OrderDto order = (OrderDto)HttpContext.Session["CurrentOrder"]; order.DeleteLineItem(name, order.LineItemList); HttpContext.Session["CurrentOrder"] = order; return(RedirectToAction("Cart")); }
public ActionResult Delete(string name) { OrderDto order = (OrderDto)HttpContext.Session["CurrentOrder"]; order.DeleteLineItem(name, order.LineItemList); HttpContext.Session["CurrentOrder"] = order; return(RedirectToAction("Cart")); }