Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

HomeController.cs 927B

12345678910111213141516171819202122232425262728293031323334353637
  1. using EndPoint.Site.Models;
  2. using Microsoft.AspNetCore.Mvc;
  3. using Microsoft.Extensions.Logging;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Diagnostics;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. namespace EndPoint.Site.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. public IActionResult Index()
  19. {
  20. return View();
  21. }
  22. public IActionResult Privacy()
  23. {
  24. return View();
  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. }
  32. }