You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
356 B
18 lines
356 B
import { Injectable } from '@angular/core';
|
|
import { ApiService } from './api.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class VoteService {
|
|
constructor(private apiService: ApiService) {}
|
|
|
|
public saveVote(vote: any): void {
|
|
this.apiService.saveVote(vote);
|
|
}
|
|
|
|
public updateVote(vote: any): void {
|
|
this.apiService.updateVote(vote);
|
|
}
|
|
}
|