I have sample code like this:
Simply call your Action Method by using Javascript as shown below:
var id = model.Id; //if you want to pass an Id parameter
window.location.href = '@Url.Action("Action", "Controller")/' + id;
Hope this helps...
You can set up your element
with
value="@model.productId"
and
onclick= addToWishList(this.value);