public static NailTop ConvertTopToDal(NailTopWCF wcfNailTop)
        {
            NailTop nailTop = new NailTop()
            {
                Id                    = wcfNailTop.Id,
                Name                  = wcfNailTop.Name,
                Brand                 = wcfNailTop.Brand,
                Price                 = wcfNailTop.Price,
                Volume                = wcfNailTop.Volume,
                QuantityBottles       = wcfNailTop.QuantityBottles,
                QuantityGeneralVolume = wcfNailTop.QuantityGeneralVolume,
                QuntityCount          = wcfNailTop.QuntityCount
            };

            return(nailTop);
        }
Example #2
0
        public static NailTopWCF ConvertTopToWcf(BllNailTop bllNailTop)
        {
            NailTopWCF wcfNailTop = new NailTopWCF()
            {
                Id                    = bllNailTop.Id,
                Name                  = bllNailTop.Name,
                Brand                 = bllNailTop.Brand,
                Price                 = bllNailTop.Price,
                Volume                = bllNailTop.Volume,
                QuantityBottles       = bllNailTop.QuantityBottles,
                QuantityGeneralVolume = bllNailTop.QuantityGeneralVolume,
                QuntityCount          = bllNailTop.QuntityCount
            };

            return(wcfNailTop);
        }
        public static NailTopWCF ConvertTopTOWcf(NailTop nailTop)
        {
            NailTopWCF topWCF = new NailTopWCF()
            {
                Id                    = nailTop.Id,
                Name                  = nailTop.Name,
                Brand                 = nailTop.Brand,
                Price                 = nailTop.Price,
                Volume                = nailTop.Volume,
                QuantityBottles       = nailTop.QuantityBottles,
                QuantityGeneralVolume = nailTop.QuantityGeneralVolume,
                QuntityCount          = nailTop.QuntityCount
            };

            return(topWCF);
        }
Example #4
0
        public static BllNailTop ConvertTopTOBLL(NailTopWCF wcfNailTop)
        {
            BllNailTop bllNailTop = new BllNailTop()
            {
                Id                    = wcfNailTop.Id,
                Name                  = wcfNailTop.Name,
                Brand                 = wcfNailTop.Brand,
                Price                 = wcfNailTop.Price,
                Volume                = wcfNailTop.Volume,
                QuantityBottles       = wcfNailTop.QuantityBottles,
                QuantityGeneralVolume = wcfNailTop.QuantityGeneralVolume,
                QuntityCount          = wcfNailTop.QuntityCount
            };

            return(bllNailTop);
        }