I have looked around for a similar question, but all the answers don't work for my problem. I am creating a wishlist, and I want the link to only return some sort of confirmation, and not go to another view.
View:
...
<div class="wishlist">
@Html.ActionLink(" ", "AddToWishList", "Wishlist", routeValues: new
{
itm_id = item.id
},
htmlAttributes: new {@class = "heart" })
</div>
...
Controller
public async Task<ActionResult> AddToWishList(int itm_id, int recordId)
{
...
return RedirectToAction(nameof(Index));
}