Esempio n. 1
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);
        }
Esempio n. 2
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);
        }