public static stock toStock(stockBusiness leStock)
        {
            stock stockS = new stock()
            {
               cottoncandy = leStock.cottoncandy,
               creamegg = leStock.creamegg,
               jawbreaker = leStock.jawbreaker,
               redvinelicornes = leStock.redvinelicornes,
               Skittles = leStock.Skittles,
               sugardaddy = leStock.sugardaddy,
             };

            return stockS;
        }
Beispiel #2
0
        public static stock toStock(stockBusiness leStock)
        {
            stock stockS = new stock()
            {
                cottoncandy     = leStock.cottoncandy,
                creamegg        = leStock.creamegg,
                jawbreaker      = leStock.jawbreaker,
                redvinelicornes = leStock.redvinelicornes,
                Skittles        = leStock.Skittles,
                sugardaddy      = leStock.sugardaddy,
            };

            return(stockS);
        }
 public bool setStock(stockBusiness leStock)
 {
     return monData.setStock(convertBusiness.toStock(leStock));
 }
 public bool setStock(stockBusiness leStock)
 {
     return(monData.setStock(convertBusiness.toStock(leStock)));
 }
Beispiel #5
0
        /// <summary>
        /// Fonction pour modifier les valeurs des champs de la table Stock
        /// </summary>
        /// <param name="Skittles_d">Type int nbr de Skittles</param>
        /// <param name="cottoncandy_d">Type int nbr de cottoncandy</param>
        /// <param name="creamegg_d">Type int nbr de creamegg</param>
        /// <param name="jawbreaker_d">Type int nbr de jawbreaker</param>
        /// <param name="redvinelicornes_d">Type int nbr de redvinelicornes</param>
        /// <param name="sugardaddy_d">Type int nbr de sugardaddy</param>
        public bool setStock(double Skittles_d, double cottoncandy_d, double creamegg_d, double jawbreaker_d, double redvinelicornes_d, double sugardaddy_d)
        {
            stockBusiness leStock2 = new stockBusiness()
            {
                Skittles = Skittles_d,
                cottoncandy = cottoncandy_d,
                creamegg = creamegg_d,
                jawbreaker = jawbreaker_d,
                redvinelicornes = redvinelicornes_d,
                sugardaddy = sugardaddy_d,
            };

            return monControlleur.setStock(leStock2);
        }