title: ASP.NET Core Redirect with data object
body: <p>I'm making a Action method in a controller like following.</p>
  
  <p><strong>In Model</strong></p>
  
  <pre><code>public class Model
  {
      public string modelStr { get; set; }
  }
  </code></pre>
  
  <p><strong>In Controller</strong></p>
  
  <pre><code>public IActionResult ActionMethod1(Model value) 
  {
      return View(value); ---- debug point (1)
  }
  
  public IActionResult ActionMethod2(int pageKind)
  {
      Model temp = new Model();
  
      if (pageKind == 1)
      {
          temp.modelStr = "Hi ASP.NET Core";
      }
      else
      {
          temp.modelStr = "error!";
      }
  
      return RedirectToAction("ActionMethod1", temp); ---- debug point (2)
  }
  </code></pre>
  
  <p>And I access ActionMethod2 with <code>/Controller/ActionMethod2</code> in browser.
  I expected <code>/Controller/ActionMethod1</code> will be called and its model <code>value</code> has value which is sent by <code>ActionMethod2</code>.</p>
  
  <p>But if I debug it, 1) debuger do not stop at <code>debug point (2)</code> and at <code>debug point (1)</code> the <code>value</code> has no value, i.e <code>value.modelStr == null</code>.</p>
  
  <p>How do value at <code>debug point (1)</code> get a value from <code>ActionMethod2</code>?</p>