Exemple #1
0
 public ActionResult Delete(PedidoViewModel pedido)
 {
     try
     {
         CopaCEN cop = new CopaCEN();
         cop.Destroy(pedido.Id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemple #2
0
 public ActionResult Delete(CopaViewModel articulo)
 {
     try
     {
         CopaCEN cop = new CopaCEN();
         cop.Destroy(articulo.id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }