AW-803 Add deleteItem.
FarmMaps.Develop/FarmMapsLib/develop There was a failure building this commit Details

pull/1/head
Peter Bastiani 2020-01-30 13:58:01 +01:00
parent 975efe5958
commit e41b94bb77
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ export class ItemService {
return this.httpClient.put<IItem>(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item);
}
deleteItem(itemCode: string): Observable<any> {
return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/items`, itemCode);
}
deleteItems(itemCodes:string[]): Observable<any> {
return this.httpClient.post<any>(`${this.ApiEndpoint()}/api/v1/items/delete`, itemCodes);
}