using Manarah.App.Models; using Manarah.App.Services; using Microsoft.AspNetCore.Mvc; using System.Diagnostics; namespace Manarah.App.Controllers { public class HomeController : Controller { private readonly ILogger _logger; private readonly ServerService _serverService; public HomeController(ILogger logger, ServerService serverService) { _logger = logger; _serverService = serverService; } public async Task IndexAsync() { var serverList = await _serverService.GetServersDashboardAsync(); return View(serverList); } public IActionResult Privacy() { return View(); } [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } } }