Beispiel #1
0
        public virtual ApiOtherTransportResponseModel MapBOToModel(
            BOOtherTransport boOtherTransport)
        {
            var model = new ApiOtherTransportResponseModel();

            model.SetProperties(boOtherTransport.Id, boOtherTransport.HandlerId, boOtherTransport.PipelineStepId);

            return(model);
        }
        public virtual BOOtherTransport MapEFToBO(
            OtherTransport ef)
        {
            var bo = new BOOtherTransport();

            bo.SetProperties(
                ef.Id,
                ef.HandlerId,
                ef.PipelineStepId);
            return(bo);
        }
        public virtual OtherTransport MapBOToEF(
            BOOtherTransport bo)
        {
            OtherTransport efOtherTransport = new OtherTransport();

            efOtherTransport.SetProperties(
                bo.HandlerId,
                bo.Id,
                bo.PipelineStepId);
            return(efOtherTransport);
        }
Beispiel #4
0
        public virtual BOOtherTransport MapModelToBO(
            int id,
            ApiOtherTransportRequestModel model
            )
        {
            BOOtherTransport boOtherTransport = new BOOtherTransport();

            boOtherTransport.SetProperties(
                id,
                model.HandlerId,
                model.PipelineStepId);
            return(boOtherTransport);
        }