Beispiel #1
0
        public virtual ApiPipelineStepDestinationResponseModel MapBOToModel(
            BOPipelineStepDestination boPipelineStepDestination)
        {
            var model = new ApiPipelineStepDestinationResponseModel();

            model.SetProperties(boPipelineStepDestination.Id, boPipelineStepDestination.DestinationId, boPipelineStepDestination.PipelineStepId);

            return(model);
        }
        public virtual BOPipelineStepDestination MapEFToBO(
            PipelineStepDestination ef)
        {
            var bo = new BOPipelineStepDestination();

            bo.SetProperties(
                ef.Id,
                ef.DestinationId,
                ef.PipelineStepId);
            return(bo);
        }
        public virtual PipelineStepDestination MapBOToEF(
            BOPipelineStepDestination bo)
        {
            PipelineStepDestination efPipelineStepDestination = new PipelineStepDestination();

            efPipelineStepDestination.SetProperties(
                bo.DestinationId,
                bo.Id,
                bo.PipelineStepId);
            return(efPipelineStepDestination);
        }
Beispiel #4
0
        public virtual BOPipelineStepDestination MapModelToBO(
            int id,
            ApiPipelineStepDestinationRequestModel model
            )
        {
            BOPipelineStepDestination boPipelineStepDestination = new BOPipelineStepDestination();

            boPipelineStepDestination.SetProperties(
                id,
                model.DestinationId,
                model.PipelineStepId);
            return(boPipelineStepDestination);
        }