HomeController.cs 736 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Diagnostics;
  2. using Microsoft.AspNetCore.Mvc;
  3. using WebApplicationSample.Models;
  4. namespace WebApplicationSample.Controllers
  5. {
  6. public class HomeController : Controller
  7. {
  8. /// <summary>
  9. /// 前言
  10. /// </summary>
  11. /// <returns></returns>
  12. public IActionResult Index()
  13. {
  14. return View();
  15. }
  16. /// <summary>
  17. /// 打赏
  18. /// </summary>
  19. /// <returns></returns>
  20. public IActionResult Gratuity()
  21. {
  22. return View();
  23. }
  24. public IActionResult Error()
  25. {
  26. return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  27. }
  28. }
  29. }