public async Task <ActionResult <List <AlbumApiModel> > > GetByArtistId(int id, CancellationToken ct = default) { try { var artist = await _BlazorSupervisor.GetArtistByIdAsync(id, ct); if (artist == null) { return(NotFound()); } return(Ok(await _BlazorSupervisor.GetAlbumByArtistIdAsync(id, ct))); } catch (Exception ex) { return(StatusCode(500, ex)); } }