Пример #1
0
        public ActionResult EliminarPromo(string id)
        {
            int Clave = int.Parse(id);

            PromoModel.Eliminar(Clave);
            return(RedirectToAction("Promociones", "Promociones"));
        }
Пример #2
0
        public ActionResult EliminarPromo(string id)
        {
            int Clave = int.Parse(id);

            PromoModel.Eliminar(Clave);
            ViewBag.Eliminado = true;
            Promociones();
            return(View("Eliminado"));
        }