Exemplo n.º 1
0
        public IEnumerable <Genre> GetAll(
            [FromQuery] string band  = "",
            [FromQuery] string venue = ""
            )
        {
            if (band != "")
            {
                return(GetGenresByBand(band));
            }
            if (venue != "")
            {
                return(GetGenresByVenue(venue));
            }

            return(Neo4jGenre.GetAllGenres());
        }
Exemplo n.º 2
0
 public IEnumerable <Genre> GetGenresByVenue(string venue)
 {
     return(Neo4jGenre.GetGenresByVenue(venue));
 }
Exemplo n.º 3
0
 public IEnumerable <Genre> GetGenresByBand(string band)
 {
     return(Neo4jGenre.GetGenresByBand(band));
 }