Exemplo n.º 1
0
        public Shampoo ConvertShampooToDTO(BllShampoo bllShampoo)
        {
            Shampoo dTOShampoo = new Shampoo()
            {
                Id                    = bllShampoo.Id,
                Name                  = bllShampoo.Name,
                Brand                 = bllShampoo.Brand,
                Price                 = bllShampoo.Price,
                Volume                = bllShampoo.Volume,
                QuantityBottles       = bllShampoo.QuantityBottles,
                QuantityGeneralVolume = bllShampoo.QuantityGeneralVolume,
                Description           = bllShampoo.Description,
                QuntityCount          = bllShampoo.QuntityCount
            };

            return(dTOShampoo);
        }
Exemplo n.º 2
0
        public BllShampoo ConvertShampoToBLL(Shampoo dTOShampoo)
        {
            BllShampoo bllShampoo = new BllShampoo()
            {
                Id                    = dTOShampoo.Id,
                Name                  = dTOShampoo.Name,
                Brand                 = dTOShampoo.Brand,
                Price                 = dTOShampoo.Price,
                Volume                = dTOShampoo.Volume,
                QuantityBottles       = dTOShampoo.QuantityBottles,
                QuantityGeneralVolume = dTOShampoo.QuantityGeneralVolume,
                Description           = dTOShampoo.Description,
                QuntityCount          = dTOShampoo.QuntityCount
            };

            return(bllShampoo);
        }