考虑这个例子:
public ViewResult View1()
{
return View();
}
public ViewResult View2()
{
return View();
}
[HttpPost]
public ActionResult Processor(SomeModel model)
{
if (comeFromView1)
{
}
//implementation
return RedirectToAction("View3");
}
View1 和 View2 都有一个发布到处理器的表单。如何在里面检测我来自哪里?