This commit is contained in:
Tiago Kayaya
2020-09-10 09:51:33 +01:00
23 changed files with 408 additions and 117 deletions
+15
View File
@@ -33,4 +33,19 @@ export class AttachmentsService {
return this.http.get<Attachment[]>(`${geturl}`, options);
}
getAttachments(source: number, sourceid: string): Observable<Attachment[]>{
let geturl = environment.apiURL + 'attachments/GetAttachments';
let params = new HttpParams();
params = params.set("Source", source.toString());
params = params.set("SourceId", sourceid);
let options = {
headers: this.headers,
params: params
};
return this.http.get<Attachment[]>(`${geturl}`, options);
}
}