var urlBuild = new UriBuilder()
{
Scheme = this.Request.Scheme,
Host = this.Request.Host.Host,
Path = this.Request.PathBase + "/Orders/Detail"
};
if (Request.Host.Port != null)
{
urlBuild.Port = Request.Host.Port.Value;
}
urlBuild.Query = $"orderNumber={item.OrderNumber}";
tempItem.DetailUrl = urlBuild.Uri.AbsoluteUri;