Exemplo n.º 1
0
 public ActionResult ShowSupprimer(String nuComm)
 {
     if (Session["id"] != null)
     {
         try
         {
             Commande temp = CommandeDao.GetCommande(nuComm);
             temp.ListArticles = ArticleDao.GetArticlesByNoComm(nuComm);
             return(View("Supprimer", temp));
         }
         catch (MonException e)
         {
             return(HttpNotFound());
         }
     }
     else
     {
         return(View("~/Views/Home/Connexion.cshtml"));
     }
 }
Exemplo n.º 2
0
 public ActionResult Details(String nuComm)
 {
     if (Session["id"] != null)
     {
         Commande comm = null;
         try
         {
             comm = CommandeDao.GetCommande(nuComm);
             comm.ListArticles = ArticleDao.GetArticlesByNoComm(nuComm);
             return(View(comm));
         }
         catch (MonException e)
         {
             return(HttpNotFound());
         }
     }
     else
     {
         return(View("~/Views/Home/Connexion.cshtml"));
     }
 }