HomeController.cs 723 B

1234567891011121314151617181920212223242526272829
  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 HaBookCms.Admin.Models;
  8. namespace HaBookCms.Admin.Controllers
  9. {
  10. public class HomeController : Controller
  11. {
  12. public IActionResult Index()
  13. {
  14. return View();
  15. }
  16. public IActionResult Privacy()
  17. {
  18. return View();
  19. }
  20. [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
  21. public IActionResult Error()
  22. {
  23. return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  24. }
  25. }
  26. }