示例#1
0
        public NailPolish ConvertPolishToDTO(BllNailPolish bllNailPolish)
        {
            NailPolish dTOPolish = new NailPolish()
            {
                Id                    = bllNailPolish.Id,
                Name                  = bllNailPolish.Name,
                Brand                 = bllNailPolish.Brand,
                Price                 = bllNailPolish.Price,
                Volume                = bllNailPolish.Volume,
                QuantityBottles       = bllNailPolish.QuantityBottles,
                QuantityGeneralVolume = bllNailPolish.QuantityGeneralVolume,
                Color                 = bllNailPolish.Color,
                QuntityCount          = bllNailPolish.QuntityCount
            };

            return(dTOPolish);
        }
示例#2
0
        public BllNailPolish ConvertPolishToBLL(NailPolish dTOPolish)
        {
            BllNailPolish bllNailPolish = new BllNailPolish()
            {
                Id                    = dTOPolish.Id,
                Name                  = dTOPolish.Name,
                Brand                 = dTOPolish.Brand,
                Price                 = dTOPolish.Price,
                Volume                = dTOPolish.Volume,
                QuantityBottles       = dTOPolish.QuantityBottles,
                QuantityGeneralVolume = dTOPolish.QuantityGeneralVolume,
                Color                 = dTOPolish.Color,
                QuntityCount          = dTOPolish.QuntityCount
            };

            return(bllNailPolish);
        }