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