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); } }
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(); }
public async Task <int> AjouterAsync(CommandesVente model) { return(await Task.Run(() => Ajouter(model))); }