public virtual BOShipMethod MapEFToBO(
            ShipMethod ef)
        {
            var bo = new BOShipMethod();

            bo.SetProperties(
                ef.ShipMethodID,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid,
                ef.ShipBase,
                ef.ShipRate);
            return(bo);
        }
Пример #2
0
        public virtual BOShipMethod MapModelToBO(
            int shipMethodID,
            ApiShipMethodRequestModel model
            )
        {
            BOShipMethod boShipMethod = new BOShipMethod();

            boShipMethod.SetProperties(
                shipMethodID,
                model.ModifiedDate,
                model.Name,
                model.Rowguid,
                model.ShipBase,
                model.ShipRate);
            return(boShipMethod);
        }