示例#1
0
        public NailBase ConvertBaseToDTO(BllNailBase bllNailBase)
        {
            NailBase dTONailBase = new NailBase()
            {
                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(dTONailBase);
        }
示例#2
0
        public BllNailBase ConvertBaseToBll(NailBase dTONailBase)
        {
            BllNailBase bllNailBase = new BllNailBase()
            {
                Id                    = dTONailBase.Id,
                Name                  = dTONailBase.Name,
                Brand                 = dTONailBase.Brand,
                Price                 = dTONailBase.Price,
                Volume                = dTONailBase.Volume,
                QuantityBottles       = dTONailBase.QuantityBottles,
                QuantityGeneralVolume = dTONailBase.QuantityGeneralVolume,
                QuntityCount          = dTONailBase.QuntityCount
            };

            return(bllNailBase);
        }