I have an MVC 4 view where I render the following actions
@{
Html.RenderAction(\"Index\", \"Logo\");
Html.RenderAction(\"Index\", \"MainMenu\");
}
>
Ok I found the problem, hopefully this will help someone in future.
The controllers for the partial views each contained the [HttpGet] attribute. For example
[HttpGet]
public ActionResult Index()
{
}
I remove the attribute from both controllers
public ActionResult Index()
{
}
and everything is now working.