For the controller below, why does a call to http://localhost%3Aport/content/about not pass "about" as the value for the page parameter of the index controller? Default routing. Clearly I do not understand routing...
public class ContentController : Controller
{
private IContentService _service;
public ContentController()
{
_service = new ContentService(new ModelStateWrapper(this.ModelState), new ContentRepository());
}
public ActionResult Index(string page)
{
return RedirectToAction("View", new { p = page });
}
public ActionResult Page(string p)
{
ContentPage contentPage = _service.GetPageContent(site, p);
return View(contentPage);
}
}