public void PurgeDatabase() { CategorieCommand catC = new CategorieCommand(contexte); ClientCommand cliC = new ClientCommand(contexte); CommandeCommand comC = new CommandeCommand(contexte); ProduitCommand proC = new ProduitCommand(contexte); StatutCommand staC = new StatutCommand(contexte); catC.Purge(); cliC.Purge(); comC.Purge(); proC.Purge(); staC.Purge(); }
public void SupprimerCategorie(int id) { CategorieCommand cc = new CategorieCommand(contexte); cc.Supprimer(id); }
public void ModifierCategorie(Categorie categorie) { CategorieCommand cc = new CategorieCommand(contexte); cc.Modifier(categorie); }
public int AjouterCategorie(Categorie categorie) { CategorieCommand cc = new CategorieCommand(contexte); return(cc.Ajouter(categorie)); }
public void DeleteCategorie(Categorie c) { CategorieCommand cc = new CategorieCommand(contexte); cc.Delete(c); }
public Categorie UpdateCategorie(Categorie c) { CategorieCommand cc = new CategorieCommand(contexte); return(cc.Update(c)); }
public void AddCategorie(Categorie c) { CategorieCommand cc = new CategorieCommand(contexte); cc.Add(c); }