2020-04-19 14:22:10 +02:00
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
import { ApiService } from './api.service';
|
|
|
|
|
|
|
|
@Injectable({
|
2020-04-21 17:26:25 +02:00
|
|
|
providedIn: 'root',
|
2020-04-19 14:22:10 +02:00
|
|
|
})
|
|
|
|
export class VoteService {
|
2020-04-21 17:26:25 +02:00
|
|
|
constructor(private apiService: ApiService) {}
|
2020-04-19 14:22:10 +02:00
|
|
|
|
2020-04-21 17:26:25 +02:00
|
|
|
public saveVote(vote: any): void {
|
|
|
|
this.apiService.saveVote(vote);
|
|
|
|
}
|
2020-04-19 14:22:10 +02:00
|
|
|
|
2020-04-21 17:26:25 +02:00
|
|
|
public updateVote(vote: any): void {
|
|
|
|
this.apiService.updateVote(vote);
|
|
|
|
}
|
2020-04-19 14:22:10 +02:00
|
|
|
}
|