Ejemplo n.º 1
0
        public async Task <List <Song> > FindByName(string query)
        {
            var songs = await _indieWindyDb.Song
                        .Include(s => s.Artist)
                        .Include(s => s.Album)
                        .ToListAsync();

            return(songs.Where(s => SearchUtil.StartsWith(s.Name, query)).ToList());
        }