HomeController.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using Microsoft.AspNetCore.Mvc;
  7. using HaBook.IES.IdentityServer.Dapper.Models;
  8. namespace HaBook.IES.IdentityServer.Dapper.Controllers
  9. {
  10. public class HomeController : Controller
  11. {
  12. public IActionResult Index()
  13. {
  14. return View();
  15. }
  16. public IActionResult About()
  17. {
  18. ViewData["Message"] = "Your application description page.";
  19. return View();
  20. }
  21. public IActionResult Contact()
  22. {
  23. ViewData["Message"] = "Your contact page.";
  24. return View();
  25. }
  26. public IActionResult Privacy()
  27. {
  28. return View();
  29. }
  30. [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
  31. public IActionResult Error()
  32. {
  33. return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  34. }
  35. }
  36. }