Dear Sir,
I create _layout page and call partialview
@Html.Action("Index", "HeaderMenu")
[HttpGet]
[ChildActionOnly]
public ActionResult Index()
{
return PartialView("Index");
}
[HttpGet]
public ActionResult Create()
{
return View();
}
[HttpPost]
public ActionResult Create(DepartmentMasterViewModel model)
{
return View("Create");
}
then create department controller after validation return view() in post method
then error occur
An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user code
Additional information: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.