import { Injectable } from '@angular/core'; import { HttpWrapperService } from './http-wrapper.service'; import { ApiResult } from '../resources/utility_models/api_result'; import { TournamentPriceBand } from 'tournee.businesslogic'; @Injectable() export class PriceService { constructor(private http: HttpWrapperService) {} update(data : TournamentPriceBand) { return this.http.securePut>>('/systemadmin/prices/', data); } add(data : TournamentPriceBand) { return this.http.securePost>>('/systemadmin/prices/', data); } get() { return this.http.insecureGet>>('/system/prices') } }