public async Task <IEnumerable <MarioLevelEntity> > GetAsync() { var marioTask1 = this.externalMarioService.GetAsync(); var marioTask2 = this.externalMarioService.GetAsync(); await Task.WhenAll(new List <Task>() { marioTask1, marioTask2 }); var result = marioLevels.Get().Select(mm => new MarioLevelEntity(mm)); return(result); }
public IEnumerable <MarioLevelEntity> Get() { var result = marioLevels.Get().Select(mm => new MarioLevelEntity(mm)); return(result); }