c'est mon action "Index"
quand je vais d'abord à la page je n'ai pas le "pageParent"
donc je ne reçois pas la page.
juste si j'y entre comme ceci "http: // localhost: 50918/Page? PageParent = 1" c'est entrer.
comment faire "http: // localhost: 50918/Page" pour fonctionner?surcharge ActionResult
public ActionResult Index(int pageParent)
{
var id = pageParent;
var pages = (from p in db.pages
where p.pageParent == id
select p);
PageParentModel model = new PageParentModel();
model.page = pages;
model.pageParent = id;
return View(model);
}