How can I return two views from an action?
I tried as below but I got an error.
public ActionResult Page()
{
//LINQ x expressions
//LINQ y expressions
if (Request.QueryString["type"] == "x")
{
return View(linqExpX.ToList());
}
else if (Request.QueryString["type"] == "y")
{
return View(linqExpY.ToList());
}
}