public PartialViewResult DeleteCmd(int id) { Commande commande = new Commande(); ViewBag.msg = commande.Delete(id); ViewBag.ListCmd = commande.List(); return(PartialView("_Listcmd")); }
// GET: Commande public ActionResult Index() { Commande commande = new Commande(); ViewBag.ListCmd = commande.List(); Tuple <Commande, Product, Client> tuple = new Tuple <Commande, Product, Client>(commande, new Product(), new Client()); return(View("Index", tuple)); }