UPDATE - There are a lot of posts regarding the Child actions are not allowed to perform redirect actions on SO and ASP.NET forums. The
Try this for your modal:
And then in your controller, fix your GET method so it returns a partial view result
//
// GET: /Franchise/Create
public PartialViewResult Create(int FranchiseSetId)
{
ViewBag.PossibleFranchiseSets = franchisesetRepository.All;
var franchise = new Franchise { FranchiseSetId = FranchiseSetId };
return PartialView(franchise);
}
I've made a couple of assumptions in this fix.
@Html.Action("Create", "Franchise", new { FranchiseSetId = Model.FranchiseSetID })
you are wanting to render that partial viewIf I've missed something let me know and I'll update my answer to try and provide a better solution.