You can create a anchor tag in combination with
@Url.Action
method, so when the user will click it, it will call the
Login action and will post the
UserId
with value
IdHere
for now:
<a href="@Url.Action("Login","ControllerName", new {UserId = "IdHere"})"
or you can use the button element as well like:
<button class="btn btn-info" type="button" id="addressSearch"
onclick="location.href='@Url.Action("Login","ControllerName", new {UserId = "IdHere"})'">
Hope it helps you to understand how to approach this.
Thanks,
Ehsan