예제 #1
0
        public static Laque ConvertLaqueToDal(LaqueWCF wcfLaque)
        {
            Laque laque = new Laque()
            {
                Id                    = wcfLaque.Id,
                Name                  = wcfLaque.Name,
                Brand                 = wcfLaque.Brand,
                Price                 = wcfLaque.Price,
                Volume                = wcfLaque.Volume,
                QuantityBottles       = wcfLaque.QuantityBottles,
                QuantityGeneralVolume = wcfLaque.QuantityGeneralVolume,
                QuntityCount          = wcfLaque.QuntityCount
            };

            return(laque);
        }
예제 #2
0
        public static LaqueWCF ConvertLaqueToWcf(BllLaque bllLaque)
        {
            LaqueWCF wcfLaque = new LaqueWCF()
            {
                Id                    = bllLaque.Id,
                Name                  = bllLaque.Name,
                Brand                 = bllLaque.Brand,
                Price                 = bllLaque.Price,
                Volume                = bllLaque.Volume,
                QuantityBottles       = bllLaque.QuantityBottles,
                QuantityGeneralVolume = bllLaque.QuantityGeneralVolume,
                QuntityCount          = bllLaque.QuntityCount
            };

            return(wcfLaque);
        }