Ejemplo n.º 1
0
        public Powder ConvertPowderToDTO(BllPowder bllPowder)
        {
            Powder dTOPowder = new Powder()
            {
                Id                    = bllPowder.Id,
                Name                  = bllPowder.Name,
                Brand                 = bllPowder.Brand,
                Price                 = bllPowder.Price,
                Volume                = bllPowder.Volume,
                QuantityBottles       = bllPowder.QuantityBottles,
                QuantityGeneralVolume = bllPowder.QuantityGeneralVolume,
                Color                 = bllPowder.Color,
                QuntityCount          = bllPowder.QuntityCount
            };

            return(dTOPowder);
        }
Ejemplo n.º 2
0
        public BllPowder ConvertPowderToBll(Powder dTOPowder)
        {
            BllPowder bllPowder = new BllPowder()
            {
                Id                    = dTOPowder.Id,
                Name                  = dTOPowder.Name,
                Brand                 = dTOPowder.Brand,
                Price                 = dTOPowder.Price,
                Volume                = dTOPowder.Volume,
                QuantityBottles       = dTOPowder.QuantityBottles,
                QuantityGeneralVolume = dTOPowder.QuantityGeneralVolume,
                Color                 = dTOPowder.Color,
                QuntityCount          = dTOPowder.QuntityCount
            };

            return(bllPowder);
        }