Exemplo n.º 1
0
        public ActionResult Supprimer(int id)
        {
            Panier();
            using (var context = new Front())
            {
                context.SupprimerArticle(panier, context.ObtenirArticle(id));
            };

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Article(int id)
 {
     using (var context = new Front())
     {
         HomeViewModel model = new HomeViewModel
         {
             ArticleChoisi = context.ObtenirArticle(id)
         };
         return(View(model));
     }
 }