public ActionResult Modifier(String nuComm)
        {
            if (Session["id"] != null)
            {
                Commande             comm         = null;
                ModifCommande        modComm      = null;
                IEnumerable <String> listClients  = null;
                IEnumerable <String> listVendeurs = null;

                try
                {
                    comm         = CommandeDao.GetCommande(nuComm);
                    listClients  = ClientDao.GetNuClients();
                    listVendeurs = VendeurDao.GetNuVendeurs();
                    modComm      = new ModifCommande(comm, listClients, listVendeurs);
                    return(View(modComm));
                }
                catch (MonException e)
                {
                    return(HttpNotFound());
                }
            }
            else
            {
                return(View("~/Views/Home/Connexion.cshtml"));
            }
        }
 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"));
     }
 }
 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"));
     }
 }