Example #1
0
 public void EditProduct(Product p)
 {
     ProductCommand pc = new ProductCommand(context);
     pc.Edit(p);
 }
Example #2
0
 public void DeleteProduct(int productId)
 {
     ProductCommand pc = new ProductCommand(context);
     pc.Delete(productId);
 }
Example #3
0
 public void EditProduct(Product p)
 {
     // TODO : ajouter des contrôles sur le produit (exemple : vérification de champ, etc.)
     ProductCommand pc = new ProductCommand(context);
     pc.Edit(p);
 }
Example #4
0
 public int AddProduct(Product p)
 {
     ProductCommand pc = new ProductCommand(context);
     return pc.Add(p);
 }
Example #5
0
 public int AddProduct(Product p)
 {
     // TODO : ajouter des contrôles sur le produit (exemple : vérification de champ, etc.)
     ProductCommand pc = new ProductCommand(context);
     return pc.Add(p);
 }