我想从RedirectToAction方法中传递多个参数,该怎么做?
我的一个Action方法
[HttpPost, ActionName("SelectQuestion")]
public ActionResult SelectQuestion(string email,List<QuestionClass.Tabelfields> model)
{
List<QuestionClass.Tabelfields> fadd = new List<QuestionClass.Tabelfields>();
for (int i = 0; i < model.Count; i++)
{
if (model[i].SelectedCheckbox == true)
{
List<QuestionClass.Tabelfields> f = new List<QuestionClass.Tabelfields>();
fadd.Add(model[i]);
}
}
return RedirectToAction("Question", new { email = email, model = fadd.ToList() });
}
我的另一个操作方法
[HttpGet]
public ActionResult Question(string email,List<QuestionClass.Tabelfields> model)
{
}
我没有在model中获取到值。