public IActionResult GetMediaByGenre(string genre) { var currentMedia = _mediaRepository.GetByGenre(genre); if (currentMedia == null) { return(NotFound()); } else { return(Ok(_mediaRepository.GetByGenre(genre))); } }
public IActionResult GetMediaByGenre(string genre) { var currentMedia = _mediaRepository.GetByGenre(genre); if (currentMedia == null) { return(NotFound()); } else { return(Ok(_mediaRepository.GetByGenre(genre))); } }