コード例 #1
0
        public Shadows ConvertShadowToDTO(BllShadows bllShadows)
        {
            Shadows dTOShadows = new Shadows()
            {
                Id                    = bllShadows.Id,
                Name                  = bllShadows.Name,
                Brand                 = bllShadows.Brand,
                Price                 = bllShadows.Price,
                Volume                = bllShadows.Volume,
                QuantityBottles       = bllShadows.QuantityBottles,
                QuantityGeneralVolume = bllShadows.QuantityGeneralVolume,
                Color                 = bllShadows.Color,
                QuntityCount          = bllShadows.QuntityCount
            };

            return(dTOShadows);
        }
コード例 #2
0
        public BllShadows ConvertShadowToBll(Shadows dTOShadows)
        {
            BllShadows bllShadows = new BllShadows()
            {
                Id                    = dTOShadows.Id,
                Name                  = dTOShadows.Name,
                Brand                 = dTOShadows.Brand,
                Price                 = dTOShadows.Price,
                Volume                = dTOShadows.Volume,
                QuantityBottles       = dTOShadows.QuantityBottles,
                QuantityGeneralVolume = dTOShadows.QuantityGeneralVolume,
                Color                 = dTOShadows.Color,
                QuntityCount          = dTOShadows.QuntityCount
            };

            return(bllShadows);
        }