title: C# MVC - Keep sort direction, column and paging in Webgrid alive when deleting a item?
body: <p>Is it a good way to use routed values for column name, page and sort dir or are there better ways to keep the webgrid settings alive?</p>
  
  <p>Currently it looks like this:</p>
  
  <pre><code>@Html.ActionLink("Delete", "DeleteEntry", new { id = item.Id, sortdir, sort = webgrid.SortColumn }, new { @class = "LoeschenImgStyle", onclick = "return confirm('You're sure?');" })
  </code></pre>
  
  <p>And my controller method looks like this:</p>
  
  <pre><code>public ActionResult DeleteEntry(Guid id, string sortdir, string sort)
  {
      _einheitenRepository.DeleteIt(id);
      return RedirectToAction("Index", new { sortdir, sort });
  }
  </code></pre>
  
  <p>Are there better alternatives to do the same?</p>
  
  <p>Thanks :)</p>