main
|
Last change
on this file since fa0fbaf was fa0fbaf, checked in by mmilevski <markomilevski3@…>, 4 weeks ago |
|
Added major improvements.
|
-
Property mode
set to
100644
|
|
File size:
714 bytes
|
| Rev | Line | |
|---|
| [08aefc6] | 1 | using System.Diagnostics;
|
|---|
| 2 | using KernelRecordsMVC.Models;
|
|---|
| [fa0fbaf] | 3 | using Microsoft.AspNetCore.Mvc;
|
|---|
| [08aefc6] | 4 |
|
|---|
| [fa0fbaf] | 5 | namespace KernelRecordsMVC.Web.Controllers;
|
|---|
| [08aefc6] | 6 |
|
|---|
| 7 | public class HomeController : Controller
|
|---|
| 8 | {
|
|---|
| 9 | private readonly ILogger<HomeController> _logger;
|
|---|
| 10 |
|
|---|
| 11 | public HomeController(ILogger<HomeController> logger)
|
|---|
| 12 | {
|
|---|
| 13 | _logger = logger;
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | public IActionResult Index()
|
|---|
| 17 | {
|
|---|
| 18 | return View();
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | public IActionResult Privacy()
|
|---|
| 22 | {
|
|---|
| 23 | return View();
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
|---|
| 27 | public IActionResult Error()
|
|---|
| 28 | {
|
|---|
| 29 | return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
|---|
| 30 | }
|
|---|
| 31 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.