I\'m trying to call a function using ajax, but it\'s not responding.
Here is the Code:
i thing the problem is in this line:
url: '@Url.Action("Remove", "ReadingNow")?Book_id=' + myId
dont use @Url.Action that is not the current syntax to use razor in JS (you need to use the pseudo-element), just write the url ["/ReadingNow/Remove?Book_id="+id]. that way you know for sure where the request will go and it easier to read.