public virtual ApiPipelineStepResponseModel MapBOToModel(
            BOPipelineStep boPipelineStep)
        {
            var model = new ApiPipelineStepResponseModel();

            model.SetProperties(boPipelineStep.Id, boPipelineStep.Name, boPipelineStep.PipelineStepStatusId, boPipelineStep.ShipperId);

            return(model);
        }
示例#2
0
        public virtual BOPipelineStep MapEFToBO(
            PipelineStep ef)
        {
            var bo = new BOPipelineStep();

            bo.SetProperties(
                ef.Id,
                ef.Name,
                ef.PipelineStepStatusId,
                ef.ShipperId);
            return(bo);
        }
示例#3
0
        public virtual PipelineStep MapBOToEF(
            BOPipelineStep bo)
        {
            PipelineStep efPipelineStep = new PipelineStep();

            efPipelineStep.SetProperties(
                bo.Id,
                bo.Name,
                bo.PipelineStepStatusId,
                bo.ShipperId);
            return(efPipelineStep);
        }
        public virtual BOPipelineStep MapModelToBO(
            int id,
            ApiPipelineStepRequestModel model
            )
        {
            BOPipelineStep boPipelineStep = new BOPipelineStep();

            boPipelineStep.SetProperties(
                id,
                model.Name,
                model.PipelineStepStatusId,
                model.ShipperId);
            return(boPipelineStep);
        }