Beispiel #1
0
        public ActionResult Baja(int cod)
        {
            MantenimientoArticulo ma = new MantenimientoArticulo();

            ma.Borrar(cod);
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            MantenimientoArticulo ma = new MantenimientoArticulo();

            ma.Borrar(id);
            return(RedirectToAction("Index"));
        }
Beispiel #3
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            /*       try
             *     {
             *         // TODO: Add delete logic here
             *
             *         return RedirectToAction("Index");
             *     }
             *     catch
             *     {
             *         return View();
             *     }
             * }*/
            MantenimientoArticulo ma = new MantenimientoArticulo();

            ma.Borrar(id);
            return(RedirectToAction("Index"));
        }