示例#1
0
        /// <summary>
        /// Method to get project builder variables on the basis of tenantId.
        /// </summary>
        /// <param name="tenantId"></param>
        /// <returns>List of projectBuilderVariablesViewModel model.</returns>
        public ProjectBuilderVariablesViewModel GetProjectBuilderVariables(Guid tenantId)
        {
            ProjectBuilderVariablesViewModel projectBuilderVariablesViewModel = new ProjectBuilderVariablesViewModel();

            projectBuilderVariablesViewModel.VariableCategory = _VariableCategoryProvider.GetAll(tenantId);
            projectBuilderVariablesViewModel.Role             = _RoleProvider.GetAll(tenantId);
            projectBuilderVariablesViewModel.VariableType     = _VariableTypeProvider.GetAll();
            projectBuilderVariablesViewModel.ValidationRule   = _ValidationRuleProvider.GetAll();

            return(projectBuilderVariablesViewModel);
        }