Вопрос

I created on list at createMaster controller (createMaster/CreateData) and I want to pass that list to DataEntry Controller (DataEntry/EntryData).

When user clicks the submit button in CreateData view I need to redirect and pass the list to EntryData view. How do I pass the list value at redirect?

Это было полезно?

Решение

TempData["model"] = model;
return RedirectToAction("Success");

and inside the

var model = TempData["model"] 
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top