Example #1
0
        public async Task PrintAllAsync()
        {
            var castCollection = await CastRepository.GetAllAsync();

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