Beispiel #1
0
 public int Ajouter(CommandesVente model)
 {
     try
     {
         return(Gestion.Ajouter(model.IdClient, model.Date));
     }
     catch (Exception e)
     {
         throw new Exception("Impossible d'ajouter la vente : \n" + e.Message);
     }
 }
Beispiel #2
0
 public int Modifier(CommandesVente model)
 {
     try
     {
         return(Gestion.Modifier(model.Id, model.IdClient, model.Date));
     }
     catch (Exception e)
     {
         throw new Exception($"Impossible de modifier la commande {model.Id} : \n" + e.Message);
     }
 }
        public AccesCommandesVente(string sChaineConnexion) : base(sChaineConnexion)
        {
            Table = "CommandesClients";

            _classesBase = new CommandesVente();
        }
Beispiel #4
0
 public async Task <int> AjouterAsync(CommandesVente model)
 {
     return(await Task.Run(() => Ajouter(model)));
 }