Beispiel #1
0
        public virtual ApiDeploymentEnvironmentResponseModel MapBOToModel(
            BODeploymentEnvironment boDeploymentEnvironment)
        {
            var model = new ApiDeploymentEnvironmentResponseModel();

            model.SetProperties(boDeploymentEnvironment.Id, boDeploymentEnvironment.DataVersion, boDeploymentEnvironment.JSON, boDeploymentEnvironment.Name, boDeploymentEnvironment.SortOrder);

            return(model);
        }
        public virtual BODeploymentEnvironment MapEFToBO(
            DeploymentEnvironment ef)
        {
            var bo = new BODeploymentEnvironment();

            bo.SetProperties(
                ef.Id,
                ef.DataVersion,
                ef.JSON,
                ef.Name,
                ef.SortOrder);
            return(bo);
        }
        public virtual DeploymentEnvironment MapBOToEF(
            BODeploymentEnvironment bo)
        {
            DeploymentEnvironment efDeploymentEnvironment = new DeploymentEnvironment();

            efDeploymentEnvironment.SetProperties(
                bo.DataVersion,
                bo.Id,
                bo.JSON,
                bo.Name,
                bo.SortOrder);
            return(efDeploymentEnvironment);
        }
Beispiel #4
0
        public virtual BODeploymentEnvironment MapModelToBO(
            string id,
            ApiDeploymentEnvironmentRequestModel model
            )
        {
            BODeploymentEnvironment boDeploymentEnvironment = new BODeploymentEnvironment();

            boDeploymentEnvironment.SetProperties(
                id,
                model.DataVersion,
                model.JSON,
                model.Name,
                model.SortOrder);
            return(boDeploymentEnvironment);
        }