title: How can I redirect to the View which called another action in .net-core MVC
body: <p>Im developing a project with ASP.NET Core 2.2 MVC. Here is a <strong>view</strong> named <em>MyView</em> in which there is a link which calls <strong><em>MyAction</em></strong> action.</p>
  
  <pre><code>&lt;div&gt;
      &lt;a asp-controller="Home" asp-action="MyAction"&gt;my link&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And this is <strong><em>MyAction</em></strong> which does st.</p>
  
  <pre><code>public async Task&lt;IActionResult&gt;MyAction(argument1,argument2)
  {
      if(a condition)
      {
         it should redirect me to the view which *MyLink* is placed there.
      }
      else
      {
         return false;
      }
  }
  </code></pre>
  
  <p>I want to know how can I find the url of the view(page) which called <em>MyAction</em> and redirect to it.</p>
  
  <p>This is project structure(I made it simple)</p>
  
  <p><a href="https://i.stack.imgur.com/0yCly.png" rel="nofollow noreferrer">project structure</a></p>
  
  <blockquote>
    <p>I found this. But I want to add NOTHING to the destination action. It doesn't work in .NET Core<br>
    <a href="https://stackoverflow.com/questions/815229/how-do-i-redirect-to-the-previous-action-in-asp-net-mvc">How do I redirect to the previous action in ASP.NET MVC?</a></p>
  </blockquote>