Пример #1
0
 public async Task <ActionResult> Index()
 {
     _logger.LogInformation("Iniciando vista Index XMLFirewall");
     ViewBag.Hosts        = EntitiesExtensions.GetDropDownItems(EntitiesExtensions.GetHostsList());
     ViewBag.Environments = EntitiesExtensions.GetDropDownItems(EntitiesExtensions.GetEnvironmentsList());
     ViewBag.Domains      = EntitiesExtensions.GetDropDownItems();
     return(View());
 }
Пример #2
0
        public async Task <ActionResult> Index()
        {
            _logger.LogInformation("Iniciando vista Index Domains");
            var model = new ServiceResponse();

            ViewBag.Hosts        = EntitiesExtensions.GetDropDownItems(EntitiesExtensions.GetHostsList());
            ViewBag.Environments = EntitiesExtensions.GetDropDownItems(EntitiesExtensions.GetEnvironmentsList());
            return(View(model));
        }
Пример #3
0
        public async Task <ActionResult> GetTcpPing()
        {
            _logger.LogInformation("Iniciando vista GetTcpPing Troubleshooting");
            var model = new PingModel {
                Uri = string.Empty, Domain = string.Empty, Host = string.Empty
            };

            ViewBag.Hosts        = EntitiesExtensions.GetDropDownItems(EntitiesExtensions.GetHostsList());
            ViewBag.Environments = EntitiesExtensions.GetDropDownItems(EntitiesExtensions.GetEnvironmentsList());
            ViewBag.Domains      = EntitiesExtensions.GetDropDownItems();
            return(View(model));
        }
Пример #4
0
        public async Task <ActionResult> GetHostsList(string pEnvironment)
        {
            var hosts = new List <string>()
            {
                "-- Seleccione --"
            };

            if (!string.IsNullOrEmpty(pEnvironment))
            {
                hosts.AddRange(EntitiesExtensions.GetHostsList(pEnvironment));
            }
            return(Json(hosts));
        }