예제 #1
0
        /// <summary>
        /// Get all movie directors names
        /// </summary>
        /// <returns>String collection of movie directors names</returns>
        public async Task <IEnumerable <string> > GetAllDirectors( )
        {
            var result = await _repository.GetAllAsync( );

            return(from d in result
                   select d.FullName);
        }
 public async Task <IEnumerable <Director> > GetAllDirectors()
 {
     return(await _directorRepository.GetAllAsync());
 }