Ejemplo n.º 1
0
        // GET: Carts/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Cart cart = cartProcess.Find((int)id);

            if (cart == null)
            {
                return(HttpNotFound());
            }
            return(View(cart));
        }
Ejemplo n.º 2
0
        // GET: Carts/Edit
        public ActionResult Edit(int id)
        {
            var cp   = new CartProcess();
            var cart = cp.Find(id);

            return(View(cart));
        }