{"size": 438, "ext": "js", "max_stars_repo_path": "LiveMusicLovers.Web.UI/Scripts/app/Services/attendancesServices.js", "max_stars_repo_name": "AdrianAVA9/Music-lovers", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "LiveMusicLovers.Web.UI/Scripts/app/Services/attendancesServices.js", "max_issues_repo_name": "AdrianAVA9/Music-lovers", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "LiveMusicLovers.Web.UI/Scripts/app/Services/attendancesServices.js", "max_forks_repo_name": "AdrianAVA9/Music-lovers", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.9090909091, "max_line_length": 54, "alphanum_fraction": 0.6324200913}
﻿var AttendancesService = function () {

	var createAttendance = function (gigId, done, fail) {
		$.post("/api/attendances", { gigId: gigId })
			.done(done)
			.fail(fail);
	};

	var cancelAttendance = function (gigId, done, fail) {
		$.ajax({
				url: "/api/attendances/" + gigId,
				method: "DELETE"
			})
			.done(done)
			.fail(fail)
	};

	return {
		createAttendance: createAttendance,
		cancelAttendance: cancelAttendance
	};
}();