Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public void SupprimerCategorie(int id)
        {
            CategorieCommand cc = new CategorieCommand(contexte);

            cc.Supprimer(id);
        }
Esempio n. 3
0
        public void ModifierCategorie(Categorie categorie)
        {
            CategorieCommand cc = new CategorieCommand(contexte);

            cc.Modifier(categorie);
        }
Esempio n. 4
0
        public int AjouterCategorie(Categorie categorie)
        {
            CategorieCommand cc = new CategorieCommand(contexte);

            return(cc.Ajouter(categorie));
        }
Esempio n. 5
0
        public void DeleteCategorie(Categorie c)
        {
            CategorieCommand cc = new CategorieCommand(contexte);

            cc.Delete(c);
        }
Esempio n. 6
0
        public Categorie UpdateCategorie(Categorie c)
        {
            CategorieCommand cc = new CategorieCommand(contexte);

            return(cc.Update(c));
        }
Esempio n. 7
0
        public void AddCategorie(Categorie c)
        {
            CategorieCommand cc = new CategorieCommand(contexte);

            cc.Add(c);
        }