using Frontend.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; namespace Frontend.Controllers { public class HomeController : Controller { private readonly ILogger _logger; private IConfiguration _configuration; public HomeController(ILogger logger, IConfiguration configuration) { _logger = logger; this._configuration = configuration; } public IActionResult Index() { ViewBag.BaseApiUrl = _configuration.GetValue("FrontendWebApi"); return View(); } 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 }); } } }