コード例 #1
0
        public Laque ConvertLaqueToDTO(BllLaque bllLaque)
        {
            Laque dTOLaque = new Laque()
            {
                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(dTOLaque);
        }
コード例 #2
0
        public BllLaque ConvertLaqueToBll(Laque dTOLaque)
        {
            BllLaque bllLaque = new BllLaque()
            {
                Id                    = dTOLaque.Id,
                Name                  = dTOLaque.Name,
                Brand                 = dTOLaque.Brand,
                Price                 = dTOLaque.Price,
                Volume                = dTOLaque.Volume,
                QuantityBottles       = dTOLaque.QuantityBottles,
                QuantityGeneralVolume = dTOLaque.QuantityGeneralVolume,
                QuntityCount          = dTOLaque.QuntityCount
            };

            return(bllLaque);
        }