Exemple #1
0
        public async Task <IActionResult> GetAlbumsForBand(Guid bandId)
        {
            if (!await _service.BandExists(bandId))
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <IEnumerable <Album> >(await _service.GetAlbumsForBand(bandId))));
        }