Adds initial ASP.NET Core MVC replacement for Blazor WASM

This commit is contained in:
BinaryAlley committed 2024-09-26 19:58:08 +03:00
1 parent 5409200c7a
commit 193861c9c5
56 files changed
+505 -4139

No files matched your search

@@ -0,0 +1,31 @@
using Lumina.Presentation.Web.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
namespace Lumina.Presentation.Web.Controllers;
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
public HomeController(ILogger<HomeController> logger)
{
_logger = logger;
}
public IActionResult Index()
{
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 });
}
}