HomeController.cs 862 B

12345678910111213141516171819202122232425262728293031323334
  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.Contest.Models;
  8. using Microsoft.Extensions.Configuration;
  9. namespace HaBookCms.Contest.Controllers
  10. {
  11. public class HomeController : BaseController
  12. {
  13. public IActionResult Index()
  14. {
  15. return View();
  16. }
  17. public string Test()
  18. {
  19. return "Hello .NetCore with Vue!(Data from Server)";
  20. }
  21. public IActionResult Privacy()
  22. {
  23. return View();
  24. }
  25. [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
  26. public IActionResult Error()
  27. {
  28. return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  29. }
  30. }
  31. }