Ejemplo n.º 1
0
        public ActionResult DeleteOrder(int ordId)
        {
            var order = DatAcessService.Orders.Where(o => o.Id == ordId);

            if (order == null)
            {
                return(HttpNotFound());
            }
            DatAcessService.DeleteOrder(ordId);
            return(RedirectToAction("OrderIndex", new { res = "deleted" }));
        }
Ejemplo n.º 2
0
 public ActionResult DeleteOrder(int Id)
 {
     DatAcessService.DeleteOrder(Id);
     return(RedirectToAction("Index", "PersCab", new { res = "deleted" }));
 }