public async Task PrintAllAsync() { var castCollection = await CastRepository.GetAllAsync(); foreach (var i in castCollection) { Console.WriteLine(i.Id + " \t " + i.id); } }
public async Task <IEnumerable <Cast> > GetAllCastAsync() { return(await castRepository.GetAllAsync()); }