Beispiel #1
0
        // GET: Articulo/Resultadobusqueda/5
        public ActionResult borraradmin(String id)
        {
            AdminCEN   cena = new AdminCEN();
            CarritoCEN carr = new CarritoCEN();

            int carrito = cena.ReadOID(id).Carrito.Id;

            carr.Destroy(carrito);
            cena.Destroy(id);


            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                // TODO: Add delete logic here
                CarritoCEN cen = new CarritoCEN();

                cen.Destroy(id);
                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Beispiel #3
0
        public ActionResult borrarusu(String id)
        {
            UsuarioCEN cenn = new UsuarioCEN();

            CarritoCEN carr = new CarritoCEN();

            int carrito = cenn.ReadOID(id).Carrito.Id;

            carr.Destroy(carrito);

            cenn.Destroy(id);


            return(RedirectToAction("Index"));
        }