add show
This commit is contained in:
18
src/app/modules/show/services/show.service.ts
Normal file
18
src/app/modules/show/services/show.service.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {ShowDataService} from './show-data.service';
|
||||
import {Show} from './show';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ShowService {
|
||||
|
||||
public SHOW_TYPE = ['praise', 'worship', 'homegroup', 'prayergroup'];
|
||||
|
||||
constructor(private showDataService: ShowDataService) {
|
||||
}
|
||||
|
||||
public async new(data: Partial<Show>): Promise<string> {
|
||||
return await this.showDataService.add(data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user