This commit is contained in:
Sébastien André
2021-03-29 09:36:37 +02:00
parent 201a563fbc
commit b2941cf6d4
6 changed files with 25 additions and 33 deletions

View File

@@ -24,6 +24,7 @@ export class DropzoneService extends BaseService {
public SetFavoriteDropZone(selectedDz: DropZoneResp): boolean {
selectedDz.isFavorite = true;
this.http.put(`${this.apiUrl}/DropZone/AddToFavorite/${selectedDz.id}`,
selectedDz,
{ headers: this.headers })
@@ -34,6 +35,7 @@ export class DropzoneService extends BaseService {
public RemoveFavoriteDropZone(selectedDz: DropZoneResp): boolean {
selectedDz.isFavorite = false;
this.http.put(`${this.apiUrl}/DropZone/RemoveToFavorite${selectedDz.id}`,
selectedDz,
{ headers: this.headers })

View File

@@ -18,15 +18,13 @@ export class GearService extends BaseService {
});
}
public AddGear(
name: string,
manufacturer: string,
minSize: number,
maxSize: number,
aad: string,
mainCanopy: string,
reserveCanopy: string
) {
public AddGear(name: string,
manufacturer: string,
minSize: number,
maxSize: number,
aad: string,
mainCanopy: string,
reserveCanopy: string) {
const bodyNewGear: GearReq = {
id: 0,
name: name,

View File

@@ -24,10 +24,9 @@ export class JumpTypeService extends BaseService {
name: jumptypetName
};
this.http
.post(`${this.apiUrl}/JumpType`, bodyJumpType, {
headers: this.headers
})
.subscribe(data => console.log(data));
this.http.post(`${this.apiUrl}/JumpType`,
bodyJumpType,
{ headers: this.headers })
.subscribe(data => console.log(data));
}
}