title: MVC Authorization - multiple login pages
body: <p>I have a the following methods in an MVC Controller which redirect to the login page when a user is not logged in.</p>
  
  <pre><code>[Authorize]
  public ActionResult Search() {
    return View();
  }
  
  [Authorize]
  public ActionResult Edit() {
    return View();
  }
  </code></pre>
  
  <p>Is there a quick/easy/standard way to redirect the second action to a different login page other than the page defined in the web.config file?</p>
  
  <p>Or do I have to do something like</p>
  
  <pre><code>public ActionResult Edit() {
    if (IsUserLoggedIn)
      return View();
    else 
       return ReturnRedirect("/Login2");
  }
  </code></pre>