Example #1
0
        public ActionResult DetailCommande(int id)
        {
            BusinessLayerManager blm = BusinessLayerManager.Instance;

            Commande c = blm.GetAllCommande().Find(commande => commande.Id == id);

            return(View(c));
        }
Example #2
0
        public List <Commande> GetCommandeData()
        {
            List <Commande> commandes = blm.GetAllCommande();

            return(commandes);
        }
Example #3
0
 public ProduitViewModel()
 {
     this.Produits  = blm.GetAllProduit();
     this.Commandes = blm.GetAllCommande();
 }