Esempio n. 1
0
        public static NailPolishWCF ConvertPolishToWcf(BllNailPolish bllNailPolish)
        {
            NailPolishWCF wcfPolish = new NailPolishWCF()
            {
                Id                    = bllNailPolish.Id,
                Name                  = bllNailPolish.Name,
                Brand                 = bllNailPolish.Brand,
                Price                 = bllNailPolish.Price,
                Volume                = bllNailPolish.Volume,
                QuantityBottles       = bllNailPolish.QuantityBottles,
                QuantityGeneralVolume = bllNailPolish.QuantityGeneralVolume,
                Color                 = bllNailPolish.Color,
                QuntityCount          = bllNailPolish.QuntityCount
            };

            return(wcfPolish);
        }
Esempio n. 2
0
        public static BllNailPolish ConvertPolishToBLL(NailPolishWCF wcfPolish)
        {
            BllNailPolish bllNailPolish = new BllNailPolish()
            {
                Id                    = wcfPolish.Id,
                Name                  = wcfPolish.Name,
                Brand                 = wcfPolish.Brand,
                Price                 = wcfPolish.Price,
                Volume                = wcfPolish.Volume,
                QuantityBottles       = wcfPolish.QuantityBottles,
                QuantityGeneralVolume = wcfPolish.QuantityGeneralVolume,
                Color                 = wcfPolish.Color,
                QuntityCount          = wcfPolish.QuntityCount
            };

            return(bllNailPolish);
        }