HomeController.cs 550 B

123456789101112131415161718192021222324
  1. using Microsoft.AspNetCore.Mvc;
  2. using NewWebApplicationSample.Models;
  3. using System.Diagnostics;
  4. namespace NewWebApplicationSample.Controllers
  5. {
  6. public class HomeController : Controller
  7. {
  8. public IActionResult Index()
  9. {
  10. return View();
  11. }
  12. public IActionResult Gratuity()
  13. {
  14. return View();
  15. }
  16. public IActionResult Error()
  17. {
  18. return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
  19. }
  20. }
  21. }