예제 #1
0
 public void EditerCommande(CommandeWPF b)
 {
     if (Commandes.Count() > 0)
     {
         for (int i = 0; i < Commandes.Count(); i++)
         {
             if (Commandes[i].commandeId == b.commandeId)
             {
                 Commandes[i].biereId          = b.biereId;
                 Commandes[i].commandeQuantite = b.commandeQuantite;
                 i = Commandes.Count() + 2;
             }
         }
     }
     DalCom.Update(b.GetCommandeDal());
 }
예제 #2
0
 public void AjouterCommande(CommandeWPF a)
 {
     a.commandeId = DalCom.Create(a.GetCommandeDal());
     // a.commandeId = DalCom.GetAll().LastOrDefault().commandeId;
     Commandes.Add(a);
 }