Ejemplo n.º 1
0
 public ActionResult <LookupModel> GetAllValues()
 {
     return(Execute(_ => new LookupModel
     {
         EnvironmentVariables = new EnvironmentVariablesModel
         {
             Syrinx = new SyrinxHostModel
             {
                 Host = syrinxProperties.Host.GetExternalAddress(),
                 Api = syrinxProperties.Api
             }
         },
         LookupValues = new LookupValuesModel
         {
             PortalPermissions = EnumModel.GetEnumModelValues <PortalPermission>(),
             IncidentStatuses = EnumModel.GetEnumModelValues <IncidentStatus>(),
             NotificationLevels = EnumModel.GetEnumModelValues <NotificationLevel>(),
             HostOperatingSystems = EnumModel.GetEnumModelValues <HostOperatingSystem>(),
             HostConnectionTypes = EnumModel.GetEnumModelValues <HostConnectionType>(),
             ModuleStatuses = EnumModel.GetEnumModelValues <ModuleStatus>(),
             ModuleConfigurationVerdicts = EnumModel.GetEnumModelValues <ModuleConfigurationVerdict>(),
             FileExtensions = EnumModel.GetEnumModelValues <FileExtension>()
         }
     }));
 }
Ejemplo n.º 2
0
 public ActionResult <LookupModel> GetAllValues()
 {
     return(Execute(_ => new LookupModel
     {
         EnvironmentVariables = new EnvironmentVariablesModel
         {
             Syrinx = new SyrinxHostModel
             {
                 Host = portalProperties.SyrinxProperties.Host.GetExternalAddress(),
                 Api = portalProperties.SyrinxProperties.Api
             },
             UnifiedPortal = new UnifiedPortalHostModel
             {
                 Host = portalProperties.UnifiedPortalProperties.Host,
                 Api = portalProperties.UnifiedPortalProperties.Api
             }
         },
         LookupValues = new LookupValuesModel
         {
             PermissionGroupId = PortalPermissionKey.PermissionGroupId,
             PortalPermissions = EnumModel.GetEnumModelValues <PortalPermission>()
         }
     }));
 }