コード例 #1
0
        public Lipstick ConvertLipstickToDTO(BllLipstick bllLipstick)
        {
            Lipstick dTOLipstick = new Lipstick()
            {
                Id                    = bllLipstick.Id,
                Name                  = bllLipstick.Name,
                Brand                 = bllLipstick.Brand,
                Price                 = bllLipstick.Price,
                Color                 = bllLipstick.Color,
                Volume                = bllLipstick.Volume,
                QuantityBottles       = bllLipstick.QuantityBottles,
                QuantityGeneralVolume = bllLipstick.QuantityGeneralVolume,
                Description           = bllLipstick.Description,
                QuntityCount          = bllLipstick.QuntityCount
            };

            return(dTOLipstick);
        }
コード例 #2
0
        public BllLipstick ConvertLipstickToBLL(Lipstick dTOLipstick)
        {
            BllLipstick bllLipstick = new BllLipstick()
            {
                Id                    = dTOLipstick.Id,
                Name                  = dTOLipstick.Name,
                Brand                 = dTOLipstick.Brand,
                Price                 = dTOLipstick.Price,
                Color                 = dTOLipstick.Color,
                Volume                = dTOLipstick.Volume,
                QuantityBottles       = dTOLipstick.QuantityBottles,
                QuantityGeneralVolume = dTOLipstick.QuantityGeneralVolume,
                Description           = dTOLipstick.Description,
                QuntityCount          = dTOLipstick.QuntityCount
            };

            return(bllLipstick);
        }