I have a view with a link which is suppose to fire a get request:
<span style="margin-right: 20px;">@Html.Hyperlink("http://localhost:59536" + pr.Url, pr.Name)</span>
<span style="margin-right: 20px;">@Html.ActionLink(pr.Name, "LoginExternal", new { url = pr.Url, state = pr.State })</span>
When I use custom html helper generating a hyperlink in the view everything works fine. If I use a second method which calls action method in the controller get request is never released:
public async Task LoginExternal(string url, string state)
{
var client = new HttpClient { BaseAddress = new Uri(uri) };
var response = await client.GetAsync(url);
response.EnsureSuccessStatusCode();
}
What am I missing in the controller action method