/// <summary> /// Modifier un LogProduit en base /// </summary> /// <param name="p">LogProduit à modifier</param> public void ModifierLogProduit(LogProduit log) { // Contôle des champs LogProduitCommand logCmd = new LogProduitCommand(contexte); logCmd.Modifier(log); }
public void DeleteLogProduit(LogProduit lp) { LogProduitCommand lpc = new LogProduitCommand(contexte); lpc.Delete(lp); }
public LogProduit UpdateLogProduit(LogProduit lp) { LogProduitCommand lpc = new LogProduitCommand(contexte); return(lpc.Update(lp)); }
public void AddLogProduit(LogProduit lp) { LogProduitCommand lpc = new LogProduitCommand(contexte); lpc.Add(lp); }
/// <summary> /// Supprimer une commande en base /// </summary> /// <param name="commandeID">Identifiant d'une commande à supprimer</param> public void SupprimerCommande(int commandeID) { LogProduitCommand commandeCmd = new LogProduitCommand(contexte); commandeCmd.Supprimer(commandeID); }
/// <summary> /// Supprimer une logProduit en base /// </summary> /// <param name="logProduitID">Identifiant du logProduit à supprimer</param> public void SupprimerLogProduit(int logProduitID) { LogProduitCommand logCmd = new LogProduitCommand(contexte); logCmd.Supprimer(logProduitID); }
/// <summary> /// Ajouter un LogProduit en base /// </summary> /// <param name="p">LogProduit à ajouter</param> /// <returns>identifiant du nouveau LogProduit</returns> public int AjouterLogProduit(LogProduit log) { LogProduitCommand logCmd = new LogProduitCommand(contexte); return(logCmd.Ajouter(log)); }