예제 #1
0
        public static ColorWCF ConvertColorToWcf(BllColor bllColor)
        {
            ColorWCF wcfColor = new ColorWCF()
            {
                Id                    = bllColor.Id,
                Name                  = bllColor.Name,
                Brand                 = bllColor.Brand,
                Price                 = bllColor.Price,
                Color                 = bllColor.Color,
                Volume                = bllColor.Volume,
                QuantityBottles       = bllColor.QuantityBottles,
                QuantityGeneralVolume = bllColor.QuantityGeneralVolume,
                Description           = bllColor.Description,
                QuntityCount          = bllColor.QuntityCount
            };

            return(wcfColor);
        }
예제 #2
0
        public static BllColor ConvertColorToBll(ColorWCF wcfColor)
        {
            BllColor bllColor = new BllColor()
            {
                Id                    = wcfColor.Id,
                Name                  = wcfColor.Name,
                Brand                 = wcfColor.Brand,
                Price                 = wcfColor.Price,
                Color                 = wcfColor.Color,
                Volume                = wcfColor.Volume,
                QuantityBottles       = wcfColor.QuantityBottles,
                QuantityGeneralVolume = wcfColor.QuantityGeneralVolume,
                Description           = wcfColor.Description,
                QuntityCount          = wcfColor.QuntityCount
            };

            return(bllColor);
        }