문제

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