I\'ve looked around and tried many different methods, but can\'t seem to pass actual data to my controller\'s function.
Here is some code:
var UR
The dataType attribute is only used when you're getting data from the server. You should be setting contentType to application/json when sending data to the server.
dataType
contentType
application/json