Пример #1
0
        public static ShampooWCF ConvertShampooToWCF(BllShampoo bllShampoo)
        {
            ShampooWCF wcfShampoo = new ShampooWCF()
            {
                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(wcfShampoo);
        }
Пример #2
0
        public static BllShampoo ConvertShampoToBLL(ShampooWCF wcfShampoo)
        {
            BllShampoo bllShampoo = new BllShampoo()
            {
                Id                    = wcfShampoo.Id,
                Name                  = wcfShampoo.Name,
                Brand                 = wcfShampoo.Brand,
                Price                 = wcfShampoo.Price,
                Volume                = wcfShampoo.Volume,
                QuantityBottles       = wcfShampoo.QuantityBottles,
                QuantityGeneralVolume = wcfShampoo.QuantityGeneralVolume,
                Description           = wcfShampoo.Description,
                QuntityCount          = wcfShampoo.QuntityCount,
            };

            return(bllShampoo);
        }