Ejemplo n.º 1
0
        public List <SongList> SearchArtist(SearchArtistRequest request)
        {
            var ArtistName = request.artist;

            if (ArtistName != null)
            {
                var song = _db.SongLists.Where(a => a.SongName.Contains(request.artist)).ToList();
                return(song);
            }
            return(null);
        }
Ejemplo n.º 2
0
 public IActionResult SearchArtist(SearchArtistRequest data)
 {
     return(Ok(repository.SearchArtist(data)));
 }