public IActionResult LogFiles(int EnvID) { ViewBag.AppName = AppSettings.AppName; var reader = new LogReader(); var target = AppSettings.Environments.Where(x => x.EnvID == EnvID).FirstOrDefault(); return(View(reader.GetFiles(target))); }