public ActionResult Add(Application application)
{
if(TempData["ApplicationObj"] != null)
{
application = TempData["ApplicationObj"] as Application;
}
return View(application);
}
[HttpPost]
public ActionResult Create(Application application)
{
application = CheckApplicationInfo(application);
if (application.Msgs.Count > 0)
{
return RedirectToAction("Add");
}
TempData["ApplicationObj"] = application;
return RedirectToAction("Add");
}
在Create里面如何跳转到Add的同时,把application传给他,貌似用TempData不行