My Background
I am working on first serious project using ASP.NET MVC 4. I am working on web development since classic ASP days and have got good ho
You need to show the parent view not the child one, so the action should look like:
[HttpPost]
public ActionResult SubmitReview(ChildViewModel model)
{
var parentViewModel = write init code here;
parentViewModel.ChildModel = model;
if (ModelState.IsValid )
{
return View("Index", parentViewModel );
}
ModelState.AddModelError("", "Some Error.");
return View("Index", parentViewModel );
}