code_junkie

Is 'HomeController' in ASP.NET MVC template app a bad name for what it does

Nov 13th, 2011
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. [HandleError]
  2. public class HomeController : Controller
  3. {
  4. public ActionResult Index()
  5. {
  6. ViewData["Title"] = "Home Page";
  7. ViewData["Message"] = "Welcome to ASP.NET MVC!";
  8.  
  9. return View();
  10. }
  11.  
  12. public ActionResult About()
  13. {
  14. ViewData["Title"] = "About Page";
  15.  
  16. return View();
  17. }
  18.  
  19. public ActionResult AnotherPage()
  20. {
  21. ViewData["Title"] = "About my other page";
  22.  
  23. return View();
  24. }
  25. }
Add Comment
Please, Sign In to add comment