Add integration of create new event from expedient

This commit is contained in:
Tiago Kayaya
2020-11-18 21:55:58 +01:00
parent 52908b509d
commit 5ef476f8a1
14 changed files with 317 additions and 157 deletions
+14
View File
@@ -115,4 +115,18 @@ export class EventsService {
return this.http.delete(`${puturl}`, options)
}
postExpedientEvent(docId:any, body:any){
const geturl = environment.apiURL + 'Calendar/CreateEventExpediente';
let params = new HttpParams();
params = params.set("DocId", docId);
let options = {
headers: this.headers,
params: params
};
return this.http.post<any>(`${geturl}`, body, options).toPromise().then(res =>{
console.log(res);
});
}
}