refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { LeagueAdminViewModel } from '../dto/LeagueDto';
|
||||
import { LeagueAdminDTO } from '../dtos/LeagueAdminDTO';
|
||||
|
||||
export class LeagueAdminPresenter {
|
||||
private result: LeagueAdminViewModel | null = null;
|
||||
private result: LeagueAdminDTO | null = null;
|
||||
|
||||
reset() {
|
||||
this.result = null;
|
||||
@@ -23,7 +23,7 @@ export class LeagueAdminPresenter {
|
||||
};
|
||||
}
|
||||
|
||||
getViewModel(): LeagueAdminViewModel {
|
||||
getViewModel(): LeagueAdminDTO {
|
||||
if (!this.result) throw new Error('Presenter not presented');
|
||||
return this.result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user