Exemplo n.º 1
0
        public BllNailTop ConvertTopTOBLL(NailTop dTONailTop)
        {
            BllNailTop bllNailTop = new BllNailTop()
            {
                Id                    = dTONailTop.Id,
                Name                  = dTONailTop.Name,
                Brand                 = dTONailTop.Brand,
                Price                 = dTONailTop.Price,
                Volume                = dTONailTop.Volume,
                QuantityBottles       = dTONailTop.QuantityBottles,
                QuantityGeneralVolume = dTONailTop.QuantityGeneralVolume,
                QuntityCount          = dTONailTop.QuntityCount
            };

            return(bllNailTop);
        }
Exemplo n.º 2
0
        public NailTop ConvertTopToDTO(BllNailTop bllNailTop)
        {
            NailTop dTONailTop = new NailTop()
            {
                Id                    = bllNailTop.Id,
                Name                  = bllNailTop.Name,
                Brand                 = bllNailTop.Brand,
                Price                 = bllNailTop.Price,
                Volume                = bllNailTop.Volume,
                QuantityBottles       = bllNailTop.QuantityBottles,
                QuantityGeneralVolume = bllNailTop.QuantityGeneralVolume,
                QuntityCount          = bllNailTop.QuntityCount
            };

            return(dTONailTop);
        }
Exemplo n.º 3
0
        public static NailTopWCF ConvertTopToWcf(BllNailTop bllNailTop)
        {
            NailTopWCF wcfNailTop = new NailTopWCF()
            {
                Id                    = bllNailTop.Id,
                Name                  = bllNailTop.Name,
                Brand                 = bllNailTop.Brand,
                Price                 = bllNailTop.Price,
                Volume                = bllNailTop.Volume,
                QuantityBottles       = bllNailTop.QuantityBottles,
                QuantityGeneralVolume = bllNailTop.QuantityGeneralVolume,
                QuntityCount          = bllNailTop.QuntityCount
            };

            return(wcfNailTop);
        }