示例#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);
     }
 }
示例#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);
     }
 }
示例#3
0
        public AccesCommandesVente(string sChaineConnexion) : base(sChaineConnexion)
        {
            Table = "CommandesClients";

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