public IActionResult Monitor() { var monitoring = new MonitorViewModel { #if RELEASE Description = "prod", #else Description = "dev", #endif Uptime = DateTime.Now - Process.GetCurrentProcess().StartTime, Listening = _monitoringManager.Listening, SchedulingMessages = _monitoringManager.SchedulingMessages, TotalUsers = _userStorage.GetTotalUsers() }; ViewBag.Version = Assembly.GetExecutingAssembly().GetName().Version; return(View("Monitor", monitoring)); }