Last active
April 20, 2018 06:41
-
-
Save davehax/3602651086eccd4c4718f493d226c41c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// POST example | |
var post = $.ajax({ | |
url: "/api/AttendancesAPI/AddOrEditMultiple", | |
type: "POST", | |
dataType: "json", | |
contentType: "application/json;charset=utf-8", | |
data: JSON.stringify({ | |
eventId: 1, | |
userAttendanceProxies: [ | |
{ | |
userId: 1, | |
statusId: 4 | |
}, | |
{ | |
userId: 2, | |
statusId: 1 | |
} | |
] | |
}) | |
}); | |
post.done(function(response) { | |
debugger; | |
}); | |
post.fail(function(error) { | |
debugger; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment