public async Task <IActionResult> GetAlbumCollection( [ModelBinder(BinderType = typeof(ArrayModelBinder))] IEnumerable <Guid> AlbumIds) { var albumCollection = await _albumRepo.GetAlbumsAsync(AlbumIds); if (AlbumIds.Count() != albumCollection.Count()) { return(NotFound()); } return(Ok(albumCollection)); }
public async Task <IActionResult> GetAlbums() { var albums = await _albumRepo.GetAlbumsAsync(); return(Ok(albums)); }