feat: add centers action (Attendance) (#1095)

Fixes: #1094
This commit is contained in:
Muskan Khedia
2020-07-14 18:58:51 +05:30
committed by GitHub
parent 39bf327fb2
commit 33a0045b10
11 changed files with 243 additions and 5 deletions
+15
View File
@@ -213,4 +213,19 @@ export class CentersService {
return this.http.delete(`/centers/${centerId}`);
}
getCentersData(centerId: string) {
const httpParams = new HttpParams().set('associations', 'groupMembers,collectionMeetingCalendar');
return this.http.get(`/centers/${centerId}`, {params: httpParams});
}
getMeetingsTemplate(centerId: any, calendarId: any): Observable<any> {
const httpParams = new HttpParams().set('calenderId', calendarId);
return this.http.get(`/centers/${centerId}/meetings/template`);
}
assignCenterAttendance(centerId: any, calendarId: any, data: any): Observable<any> {
const httpParams = new HttpParams().set('calenderId', calendarId);
return this.http.post(`/centers/${centerId}/meetings`, data, {params: httpParams});
}
}