我想从 RedirectToAction 方法传递多个参数
我怎么能通过?
我的一个行动方法
[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的值。