public async Task <ActionResult <IEnumerable <Album> > > Get() { var albums = await _albumsService.GetAlbumsWithPhotos(); if (albums?.Count() == 0) { return(NoContent()); } return(Ok(albums)); }
public async Task <ActionResult <IEnumerable <Album> > > Get() { var albums = await _albumsService.GetAlbumsWithPhotos(); if (albums?.Count() == 0) { return(NoContent()); } return(Ok(albums)); }