You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
991 B

2 years ago
  1. using Microsoft.AspNetCore.Mvc;
  2. using Microsoft.Extensions.Logging;
  3. using Origtek_OS.Models;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Diagnostics;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. namespace Origtek_OS.Controllers
  10. {
  11. public class HomeController : Controller
  12. {
  13. private readonly ILogger<HomeController> _logger;
  14. public HomeController(ILogger<HomeController> logger)
  15. {
  16. _logger = logger;
  17. }
  18. [Route("")]
  19. [Route("index")]
  20. public IActionResult Index()
  21. {
  22. return View();
  23. }
  24. [Route("privacy")]
  25. public IActionResult Privacy()
  26. {
  27. return View();
  28. }
  29. [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
  30. public IActionResult Error()
  31. {
  32. return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  33. }
  34. }
  35. }