public async Task <List <Bekker> > HentAlleBekkereAsync() { var bekkerDataObjects = await DataHelpers.HentObjekter <BekkerDataObject>(PlayersEndpoint); return(bekkerDataObjects.Select(x => new Bekker(x)).ToList()); }
public async Task <List <SjakkParti> > HentAllePartiAsync() { var partiDataObjects = await DataHelpers.HentObjekter <SjakkPartiDataObject>(GamesEndpoint); return(partiDataObjects.Select(p => new SjakkParti(p)).ToList()); }