public ActionResult <IEnumerable <AlbumDto> > GetAlbumsForBand(Guid bandId) { if (!_repo.BandExist(bandId)) { return(NotFound()); } var albumsFromRepo = _repo.GetAlbums(bandId); return(Ok(_mapper.Map <IEnumerable <AlbumDto> >(albumsFromRepo))); }