Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: "POST",
- url: '@Url.Action("ValiderRang")',
- data: '{Id: ' + JSON.stringify(id) + ',Rang: ' + rang + '}',
- dataType: "json",
- contentType: "application/json; charset=utf-8",
- success: function (response) {
- if (response == "success") {
- return true;
- }
- else {
- return false;
- }
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement