Ejemplo n.º 1
0
        public virtual ApiReleaseResponseModel MapBOToModel(
            BORelease boRelease)
        {
            var model = new ApiReleaseResponseModel();

            model.SetProperties(boRelease.Id, boRelease.Assembled, boRelease.ChannelId, boRelease.JSON, boRelease.ProjectDeploymentProcessSnapshotId, boRelease.ProjectId, boRelease.ProjectVariableSetSnapshotId, boRelease.Version);

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BORelease MapEFToBO(
            Release ef)
        {
            var bo = new BORelease();

            bo.SetProperties(
                ef.Id,
                ef.Assembled,
                ef.ChannelId,
                ef.JSON,
                ef.ProjectDeploymentProcessSnapshotId,
                ef.ProjectId,
                ef.ProjectVariableSetSnapshotId,
                ef.Version);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual Release MapBOToEF(
            BORelease bo)
        {
            Release efRelease = new Release();

            efRelease.SetProperties(
                bo.Assembled,
                bo.ChannelId,
                bo.Id,
                bo.JSON,
                bo.ProjectDeploymentProcessSnapshotId,
                bo.ProjectId,
                bo.ProjectVariableSetSnapshotId,
                bo.Version);
            return(efRelease);
        }
Ejemplo n.º 4
0
        public virtual BORelease MapModelToBO(
            string id,
            ApiReleaseRequestModel model
            )
        {
            BORelease boRelease = new BORelease();

            boRelease.SetProperties(
                id,
                model.Assembled,
                model.ChannelId,
                model.JSON,
                model.ProjectDeploymentProcessSnapshotId,
                model.ProjectId,
                model.ProjectVariableSetSnapshotId,
                model.Version);
            return(boRelease);
        }