Esempio n. 1
0
        public PartialViewResult DeleteCmd(int id)
        {
            Commande commande = new Commande();

            ViewBag.msg     = commande.Delete(id);
            ViewBag.ListCmd = commande.List();
            return(PartialView("_Listcmd"));
        }
Esempio n. 2
0
        // 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));
        }