How can I for example execute a record deletion action using an ASP.NET Maker API action? Do I need to enable any advanced settings?
Tried to test via url:
http://localhost:9011/api/delete/tacontatos/5824
And via code:
$("#btn-id").click(function() {
var url = "/api/",
object = "tacontatos", // "cars" is the table variable name
action = "delete", // Get response from Add page
key = 5824,
$.get(url + action + "/" + object + "/" + key , function(res) {
if (res && res.success) {
var row = res[object];
alert(JSON.stringify(row)); // Show output JSON
} else {
alert(res.failureMessage);
}
});
});
Returning the following error:
"An unhandled exception occurred while processing the request.
InvalidOperationException: Sequence contains in matching element
System.Linq.ThrowHelper.ThrowNoMatchException()"