Beispiel #1
0
        public async Task <IActionResult> GetBand(int bandId)
        {
            var band = await SongRepository.GetBandById(bandId);

            if (band == null)
            {
                return(NotFound(new ApiResponse(404, $"No band with id {bandId}")));
            }

            return(Ok(new ApiOKResponse(band)));
        }