asp.net-mvc Query string binding


Example

To extend on the route binding say you had a url like https://stackoverflow.com/questions/1558902?sort=desc

and routing like {controller=Home}/{action=Index}/{id?}

public ActionResult Index(int? id, string sort){
     //sort would bind to the value in the query string, i.e. "desc"
}