When I click on the anchor tag and set a breakpoint on the Controller action below, the breakpoint hit 2 times consecutively why is this 2nd call trigger?
Here is my anchor tag code:
<a asp-area="" asp-controller="Trip" asp-action="Add" asp-route-id="Page1" style="text-decoration:none; font-weight:bold;">Add Trip</a>
Controller code:
public IActionResult Add(string id = "Page1")
{
return View(id);
}
View code:
@{
ViewData["Title"] = "Add Trip - Page 1";
}
<h1>Page 1</h1>
Request.Methodduring the first and second call?