I build an url for specific controller with:
var f = new System.UriBuilder( Request.Url.AbsoluteUri ) {
Path = Url.Action( "Get", "People")
};
it returns
http://localhost/myApp/People/Get
Good.
What is the best way to add a querystring to that url ?
Means
http://localhost/myApp/People/Get?id=7
I'm going to do with :
string path = string.Concat(f.ToString(), "?id=3");
But I want to know if is other way (more better than provided by me above) to append querystring to that Url.