title: Redirect from a [HttpGet] Action To [HttpPost] Action - MVC3
body: <p>I want to redirect to a <code>[HttpPost]</code> Action from a <code>[HttpGet]</code> Action in the same controller.</p>
  
  <p>Is it possible?</p>
  
  <p>I'm trying to not rewrite the same code for a Login, because it is a complex, and not typical logon function</p>
  
  <p>This is my code:</p>
  
  <pre><code>[HttpGet]
  public ActionResult Login(){
      return View();
  }
  
  [HttpPost]
  public ActionResult Login(LoginModel model)
  {
      //search user and create sesion
      //...
  
      if (registered)
          {
          return this.RedirectToAction("Home","Index");                      
          }else{
          return this.RedirectToAction("Home", "signIn");
      }
  }
  
  [HttpGet]
  public ActionResult signIn(){
      return View();
  }
  
  [HttpGet]
  public ActionResult signInUserModel model)
  {
      //Register new User
      //...
      if (allOk)
          {
          LoginModel loginModel = new LoginModel();
              loginModel.User = model.User;
              loginModel.password = model.password;
  
              //next line doesn't work!!!!!
          return this.RedirectToAction("Home","Login", new { model = loginModel); 
  
          }else{
          //error
          //...
  
      }
  
  }
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>