예제 #1
0
        public static NailBase ConvertBaseToDAL(NailBaseWCF wcfNailBase)
        {
            NailBase nailBase = new NailBase()
            {
                Id                    = wcfNailBase.Id,
                Name                  = wcfNailBase.Name,
                Brand                 = wcfNailBase.Brand,
                Price                 = wcfNailBase.Price,
                Volume                = wcfNailBase.Volume,
                QuantityBottles       = wcfNailBase.QuantityBottles,
                QuantityGeneralVolume = wcfNailBase.QuantityGeneralVolume,
                QuntityCount          = wcfNailBase.QuntityCount
            };

            return(nailBase);
        }
예제 #2
0
        public static NailBaseWCF ConvertBaseToWCF(BllNailBase bllNailBase)
        {
            NailBaseWCF wcfNailBase = new NailBaseWCF()
            {
                Id                    = bllNailBase.Id,
                Name                  = bllNailBase.Name,
                Brand                 = bllNailBase.Brand,
                Price                 = bllNailBase.Price,
                Volume                = bllNailBase.Volume,
                QuantityBottles       = bllNailBase.QuantityBottles,
                QuantityGeneralVolume = bllNailBase.QuantityGeneralVolume,
                QuntityCount          = bllNailBase.QuntityCount
            };

            return(wcfNailBase);
        }