repo rework
Some checks failed
Build and Push Docker Image / docker (push) Failing after 18s

This commit is contained in:
2026-04-08 12:36:00 +00:00
parent 30a86a5890
commit 2be781c3b1
109 changed files with 78389 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using System.Diagnostics;
using Example.Data;
using Microsoft.AspNetCore.Mvc;
using Example.Models;
namespace Example.Controllers;
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
// Added application db context as parameter
public HomeController(ILogger<HomeController> logger, ApplicationDbContext db)
{
_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 });
}
}