Beispiel #1
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);
        }
Beispiel #2
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);
        }