Exemplo n.º 1
0
        public HairColor ConvertColorToDTO(BllColor bllColor)
        {
            HairColor dTOColor = new HairColor()
            {
                Id                    = bllColor.Id,
                Name                  = bllColor.Name,
                Brand                 = bllColor.Brand,
                Price                 = bllColor.Price,
                Color                 = bllColor.Color,
                Volume                = bllColor.Volume,
                QuantityBottles       = bllColor.QuantityBottles,
                QuantityGeneralVolume = bllColor.QuantityGeneralVolume,
                Description           = bllColor.Description,
                QuntityCount          = bllColor.QuntityCount
            };

            return(dTOColor);
        }
Exemplo n.º 2
0
        public BllColor ConvertColorToBll(HairColor dTOColor)
        {
            BllColor bllColor = new BllColor()
            {
                Id                    = dTOColor.Id,
                Name                  = dTOColor.Name,
                Brand                 = dTOColor.Brand,
                Price                 = dTOColor.Price,
                Color                 = dTOColor.Color,
                Volume                = dTOColor.Volume,
                QuantityBottles       = dTOColor.QuantityBottles,
                QuantityGeneralVolume = dTOColor.QuantityGeneralVolume,
                Description           = dTOColor.Description,
                QuntityCount          = dTOColor.QuntityCount
            };

            return(bllColor);
        }