public DbLeague ToDbLeague() { return(LeagueConverter.ToDbLeague(this)); }
public void TestSetup() { converter = new LeagueConverter(); }
public async Task <List <LeagueViewModel> > GetLeaguesBySportTypeIdAsync(string sportTypeId, CancellationToken ct = default(CancellationToken)) { List <LeagueViewModel> leagues = LeagueConverter.ConvertList(await this._leagueRepository.GetBySportTypeIdAsync(sportTypeId, ct)); return(leagues); }
public DbLeague CopyWithoutNavigationProperties() { return(LeagueConverter.CopyWithoutNavigationProperties(this)); }
public async Task <LeagueViewModel> GetLeagueByIdAsync(string id, CancellationToken ct = default(CancellationToken)) { LeagueViewModel league = LeagueConverter.Convert(await this._leagueRepository.GetByIdAsync(id, ct)); return(league); }