title: Return to the previous page
body: <p>I have a search text input in my layout page in a partialView and other 3 pages that uses layout:</p>
  
  <pre><code>@using (Html.BeginForm("Search", "Product"))
  {
      @Html.TextBoxFor(m =&gt; m.SearchText)
      @Html.ValidationMessageFor(m =&gt; m.SearchText)
  
      &lt;input type="submit" value="Search"/&gt;
  }
  </code></pre>
  
  <p>When it goes inside Product/Search action, how can I know where it came from and return to the correct page with a message assuming the 3 other pages uses different ViewModels?</p>