Пример #1
0
        public static LipstickWCF ConvertLipstickTowcf(BllLipstick bllLipstick)
        {
            LipstickWCF wcfLipstick = new LipstickWCF()
            {
                Id                    = bllLipstick.Id,
                Name                  = bllLipstick.Name,
                Brand                 = bllLipstick.Brand,
                Price                 = bllLipstick.Price,
                Color                 = bllLipstick.Color,
                Volume                = bllLipstick.Volume,
                QuantityBottles       = bllLipstick.QuantityBottles,
                QuantityGeneralVolume = bllLipstick.QuantityGeneralVolume,
                Description           = bllLipstick.Description,
                QuntityCount          = bllLipstick.QuntityCount
            };

            return(wcfLipstick);
        }
Пример #2
0
        public static BllLipstick ConvertLipstickToBLL(LipstickWCF wcfLipstick)
        {
            BllLipstick bllLipstick = new BllLipstick()
            {
                Id                    = wcfLipstick.Id,
                Name                  = wcfLipstick.Name,
                Brand                 = wcfLipstick.Brand,
                Price                 = wcfLipstick.Price,
                Color                 = wcfLipstick.Color,
                Volume                = wcfLipstick.Volume,
                QuantityBottles       = wcfLipstick.QuantityBottles,
                QuantityGeneralVolume = wcfLipstick.QuantityGeneralVolume,
                Description           = wcfLipstick.Description,
                QuntityCount          = wcfLipstick.QuntityCount
            };

            return(bllLipstick);
        }