feat: add create holiday component (#1195)

Fixes: #154
This commit is contained in:
Karan Takalkar
2020-08-11 21:22:54 +05:30
committed by GitHub
parent c620d3145e
commit c6ee2a062f
9 changed files with 251 additions and 2 deletions
@@ -608,6 +608,15 @@ export class OrganizationService {
return this.http.get('/holidays/template');
}
/**
* Create Holiday.
* @param holidayData Holiday data to be created.
* @returns {Observable<any>}
*/
createHoliday(holidayData: any): Observable<any> {
return this.http.post('/holidays', holidayData);
}
/**
* Update Holiday.
* @param holidayId Holiday Id to be updated.