title: ASP.NET MVC Remove query string in action method
body: <p>I have an action method that looks like this:</p>
  
  <pre><code>public ActionResult Index(string message)
  {
    if (message != null)
    {
      ViewBag.Message = message;
    }
    return View();
  }
  </code></pre>
  
  <p>What happens is that the url of a request to this will look like:</p>
  
  <pre><code>www.mysite.com/controller/?message=Hello%20world
  </code></pre>
  
  <p>But I want it to look just</p>
  
  <pre><code>www.mysite.com/controller/
  </code></pre>
  
  <p>Is there a way to remove the query string inside the actionmethod? </p>