Skip to content

Instantly share code, notes, and snippets.

@davehax
Last active April 20, 2018 06:41
Show Gist options
  • Save davehax/3602651086eccd4c4718f493d226c41c to your computer and use it in GitHub Desktop.
Save davehax/3602651086eccd4c4718f493d226c41c to your computer and use it in GitHub Desktop.
// 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