Beispiel #1
0
        public virtual ApiTenantVariableResponseModel MapBOToModel(
            BOTenantVariable boTenantVariable)
        {
            var model = new ApiTenantVariableResponseModel();

            model.SetProperties(boTenantVariable.Id, boTenantVariable.EnvironmentId, boTenantVariable.JSON, boTenantVariable.OwnerId, boTenantVariable.RelatedDocumentId, boTenantVariable.TenantId, boTenantVariable.VariableTemplateId);

            return(model);
        }
Beispiel #2
0
        public virtual BOTenantVariable MapEFToBO(
            TenantVariable ef)
        {
            var bo = new BOTenantVariable();

            bo.SetProperties(
                ef.Id,
                ef.EnvironmentId,
                ef.JSON,
                ef.OwnerId,
                ef.RelatedDocumentId,
                ef.TenantId,
                ef.VariableTemplateId);
            return(bo);
        }
Beispiel #3
0
        public virtual TenantVariable MapBOToEF(
            BOTenantVariable bo)
        {
            TenantVariable efTenantVariable = new TenantVariable();

            efTenantVariable.SetProperties(
                bo.EnvironmentId,
                bo.Id,
                bo.JSON,
                bo.OwnerId,
                bo.RelatedDocumentId,
                bo.TenantId,
                bo.VariableTemplateId);
            return(efTenantVariable);
        }
Beispiel #4
0
        public virtual BOTenantVariable MapModelToBO(
            string id,
            ApiTenantVariableRequestModel model
            )
        {
            BOTenantVariable boTenantVariable = new BOTenantVariable();

            boTenantVariable.SetProperties(
                id,
                model.EnvironmentId,
                model.JSON,
                model.OwnerId,
                model.RelatedDocumentId,
                model.TenantId,
                model.VariableTemplateId);
            return(boTenantVariable);
        }