Пример #1
0
 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);
        }
Пример #4
0
 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);
        }