title: The view doesn't render when return View("viewname", model)
body: <p>I'm developing asp.net core mvc web application. In my controller, there're two actions named 'Index' and 'Index2'.</p>
  <p>When I submit form to 'Index2', it will return <code>View(&quot;Index&quot;, model)</code>. But the view doesn't render correctly.</p>
  <p>For example, if I input 'Steven' in the TextBox and submit to 'Index2' action, the Name property should be 'Name999'. The Textbox on the HTML should be show 'Name999', but actually, it still show 'Steven'.</p>
  <p><a href="https://i.stack.imgur.com/heVyo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/heVyo.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/Z8aRC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z8aRC.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/eRPMy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eRPMy.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/rjkbk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rjkbk.png" alt="enter image description here" /></a></p>
  <p>The code sample:</p>
  <pre><code>@model WebApplication2.Controllers.Test
  
  &lt;form method=&quot;post&quot; action=&quot;/home/Index2&quot;&gt;
  
  &lt;div class=&quot;form-group&quot;&gt;
      
      &lt;input type=&quot;text&quot; asp-for=&quot;Name&quot;/&gt;
  &lt;/div&gt;
  
  &lt;div class=&quot;form-group&quot;&gt;
      &lt;button type=&quot;submit&quot;&gt;Add&lt;/button&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  
  public IActionResult Index(Test  test)
  {
      return View(test);
  }
  
  [HttpPost]
  public IActionResult Index2(Test test)
  {
      test.Name = &quot;Name999&quot;;
      return View(&quot;Index&quot;,test);
  }
  
  public class Test
  { 
      public string Name { get; set; }
  }
  </code></pre>