async Task PrintAllAsync() { IEnumerable <MovieGenre> mgCollection = await mgService.GetAllAsync(); foreach (var item in mgCollection) { Console.WriteLine(item.MovieId + "\t" + item.GenreId); } }
public async Task <List <MovieGenre> > GetAll(int skip = 0, int take = 10) { return(await _movieGenreService.GetAllAsync(skip, take)); }