Exemplo n.º 1
0
        public async Task PrintAllAsync()
        {
            var castCollection = await CastRepository.GetAllAsync();

            foreach (var i in castCollection)
            {
                Console.WriteLine(i.Id + " \t " + i.id);
            }
        }
Exemplo n.º 2
0
 public async Task <IEnumerable <Cast> > GetAllCastAsync()
 {
     return(await castRepository.GetAllAsync());
 }