From c5dc3763babe083c88dbc927f996fb1bdda80359 Mon Sep 17 00:00:00 2001 From: transtrike Date: Mon, 7 Dec 2020 22:37:08 +0200 Subject: Base line projects created --- Web/Controllers/HomeController.cs | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Web/Controllers/HomeController.cs (limited to 'Web/Controllers') diff --git a/Web/Controllers/HomeController.cs b/Web/Controllers/HomeController.cs new file mode 100644 index 0000000..3c5b6ec --- /dev/null +++ b/Web/Controllers/HomeController.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; +using Web.Models; + +namespace Web.Controllers +{ + public class HomeController : Controller + { + private readonly ILogger _logger; + + public HomeController(ILogger 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 }); + } + } +} -- cgit v1.2.3