I'm just getting into ASP.NET MVC and was a little confused in the sample app why 'HomeController' is called 'HomeController'.
It seems to be a better name would be 'DefaultController' or 'ContentController'.
Its really a little misleading because its name implies that its got something to do with controlling the homepage, but it really doesnt.
The contents of the controller is this, and it loads content pages defined in the 'Home' directory.
[HandleError]
public class HomeController : Controller
{
public ActionResult Index()
{
ViewData["Title"] = "Home Page";
ViewData["Message"] = "Welcome to ASP.NET MVC!";
return View();
}
public ActionResult About()
{
ViewData["Title"] = "About Page";
return View();
}
public ActionResult AnotherPage()
{
ViewData["Title"] = "About my other page";
return View();
}
}
Agree or disagree?