Exemplo n.º 1
0
 /// <summary>
 /// Modifier une commandeProduit en base
 /// </summary>
 /// <param name="cp">CommandeProduit à modifier</param>
 public void ModifierCommandeProduit(CommandeProduit cp)
 {
     // TODO : ajouter des contrôles sur le commandeProduit (exemple : vérification de champ, etc.)
     CommandeProduitCommand cpc = new CommandeProduitCommand(contexte);
     cpc.Modifier(cp);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Supprimer une commandeProduit en base
 /// </summary>
 /// <param name="produitID">Identifiant du commandeProduit à supprimer</param>
 /// <param name="commandeID">Identifiant du commandeProduit à supprimer</param>
 public void SupprimerCommandeProduit(int produitID, int commandeID)
 {
     CommandeProduitCommand cpc = new CommandeProduitCommand(contexte);
     cpc.Supprimer(produitID, commandeID);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Ajouter une commandeProduit en base
 /// </summary>
 /// <param name="cp">CommandeProduit à ajouter</param>
 /// <returns>identifiant du nouveau commandeProduit</returns>
 public int AjouterCommandeProduit(CommandeProduit cp)
 {
     // TODO : ajouter des contrôles sur le commandeProduit (exemple : vérification de champ, etc.)
     CommandeProduitCommand cpc = new CommandeProduitCommand(contexte);
     return cpc.Ajouter(cp);
 }