call controller on button click .net core code example
Example: button action asp net
<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />
<input type="button" value="Create" onclick="location.href='@Url.Action("Create", "User")'" />