6 lines
362 B
TypeScript
6 lines
362 B
TypeScript
import { LeagueStandingsDto, StandingEntryDto } from '../dtos';
|
|
import { LeagueStandingsViewModel } from '../view-models';
|
|
|
|
export const presentLeagueStandings = (dto: LeagueStandingsDto, currentUserId: string, previousStandings?: StandingEntryDto[]): LeagueStandingsViewModel => {
|
|
return new LeagueStandingsViewModel(dto, currentUserId, previousStandings);
|
|
}; |