add remove common area en api service

This commit is contained in:
Mariela 2022-08-01 01:08:27 -06:00
parent bb05560668
commit 859c420067
1 changed files with 10 additions and 0 deletions

View File

@ -258,6 +258,16 @@ export class AppService {
.pipe(map((message: string) => ({ message }))); .pipe(map((message: string) => ({ message })));
} }
//GET parameter from API
removeCommonArea(paramCommonAreaId: string) {
const pattern = { cmd: 'removeCommonArea' };
const payload = { id: paramCommonAreaId };
return this.clientCommonAreaApp
.send<string>(pattern, payload)
.pipe(map((message: string) => ({ message })));
}
// ====================== GUESTS =============================== // ====================== GUESTS ===============================
//POST parameter from API //POST parameter from API