Exemplo n.º 1
0
        public virtual ApiPipelineStatusResponseModel MapBOToModel(
            BOPipelineStatus boPipelineStatus)
        {
            var model = new ApiPipelineStatusResponseModel();

            model.SetProperties(boPipelineStatus.Id, boPipelineStatus.Name);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOPipelineStatus MapEFToBO(
            PipelineStatus ef)
        {
            var bo = new BOPipelineStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual PipelineStatus MapBOToEF(
            BOPipelineStatus bo)
        {
            PipelineStatus efPipelineStatus = new PipelineStatus();

            efPipelineStatus.SetProperties(
                bo.Id,
                bo.Name);
            return(efPipelineStatus);
        }
Exemplo n.º 4
0
        public virtual BOPipelineStatus MapModelToBO(
            int id,
            ApiPipelineStatusRequestModel model
            )
        {
            BOPipelineStatus boPipelineStatus = new BOPipelineStatus();

            boPipelineStatus.SetProperties(
                id,
                model.Name);
            return(boPipelineStatus);
        }