I am trying to create a dynamic menu layout in ASP.NET MVC 4. What I did is in my shared view I have the following call
@{ Html.RenderAction("Index", "FooterMenu"); }
I have a controller, and a view for my FooterMenu. It also have a model. Now i try to call it however I keep getting this error
System.StackOverflowException was unhandled
Its keep pointing to my index
public ActionResult Index()
{
return View(db.FooterMenus.ToList());
}
It also say make sure i am not in an infinite loop, or recursion. But my code is fairly simple