Ejemplo n.º 1
0
        public virtual ApiProjectResponseModel MapBOToModel(
            BOProject boProject)
        {
            var model = new ApiProjectResponseModel();

            model.SetProperties(boProject.Id, boProject.AutoCreateRelease, boProject.DataVersion, boProject.DeploymentProcessId, boProject.DiscreteChannelRelease, boProject.IncludedLibraryVariableSetIds, boProject.IsDisabled, boProject.JSON, boProject.LifecycleId, boProject.Name, boProject.ProjectGroupId, boProject.Slug, boProject.VariableSetId);

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

            bo.SetProperties(
                ef.Id,
                ef.AutoCreateRelease,
                ef.DataVersion,
                ef.DeploymentProcessId,
                ef.DiscreteChannelRelease,
                ef.IncludedLibraryVariableSetIds,
                ef.IsDisabled,
                ef.JSON,
                ef.LifecycleId,
                ef.Name,
                ef.ProjectGroupId,
                ef.Slug,
                ef.VariableSetId);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual Project MapBOToEF(
            BOProject bo)
        {
            Project efProject = new Project();

            efProject.SetProperties(
                bo.AutoCreateRelease,
                bo.DataVersion,
                bo.DeploymentProcessId,
                bo.DiscreteChannelRelease,
                bo.Id,
                bo.IncludedLibraryVariableSetIds,
                bo.IsDisabled,
                bo.JSON,
                bo.LifecycleId,
                bo.Name,
                bo.ProjectGroupId,
                bo.Slug,
                bo.VariableSetId);
            return(efProject);
        }
Ejemplo n.º 4
0
        public virtual BOProject MapModelToBO(
            string id,
            ApiProjectRequestModel model
            )
        {
            BOProject boProject = new BOProject();

            boProject.SetProperties(
                id,
                model.AutoCreateRelease,
                model.DataVersion,
                model.DeploymentProcessId,
                model.DiscreteChannelRelease,
                model.IncludedLibraryVariableSetIds,
                model.IsDisabled,
                model.JSON,
                model.LifecycleId,
                model.Name,
                model.ProjectGroupId,
                model.Slug,
                model.VariableSetId);
            return(boProject);
        }