Example #1
0
        public virtual ApiShipMethodResponseModel MapBOToModel(
            BOShipMethod boShipMethod)
        {
            var model = new ApiShipMethodResponseModel();

            model.SetProperties(boShipMethod.ShipMethodID, boShipMethod.ModifiedDate, boShipMethod.Name, boShipMethod.Rowguid, boShipMethod.ShipBase, boShipMethod.ShipRate);

            return(model);
        }
        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);
        }
        public virtual ShipMethod MapBOToEF(
            BOShipMethod bo)
        {
            ShipMethod efShipMethod = new ShipMethod();

            efShipMethod.SetProperties(
                bo.ModifiedDate,
                bo.Name,
                bo.Rowguid,
                bo.ShipBase,
                bo.ShipMethodID,
                bo.ShipRate);
            return(efShipMethod);
        }
Example #4
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);
        }