hi all,
I have surface controller, partial view form return some values on submit and the controller has some work to do and return model back to page so we can load next stage of the form .
I’m struggling here to send the model back to page bcos return RedirectToCurrentUmbracoPage(); and return CurrentUmbracoPage(); seems to be losing the data . when page reload.
I have assigned model to TempData[“CheckerResult”] in controller but struggling to read from View again .
I have tried to convert TempData back to object model it throwing an error.
MyViewModel resultmodel = JsonConvert.DeserializeObject<MyViewModel>(TempData["CheckerResult"]);
anyone know how to pass complex models back to view and reload form page?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115147-how-to-return-model-back-to-page-after-post-submit-using-surfacecontroller-v13