public async Task <ActionResult <AlbumDTO> > AddAlbum(AlbumDTO album) { try { return(new OkObjectResult(await _labelService.AddAlbum(album))); } catch (Exception ex) { return(new StatusCodeResult(500)); } }
public async Task <ActionResult <AlbumDTO> > AddAlbum(AlbumDTO album) { try { return(new OkObjectResult(await _labelService.AddAlbum(album))); } catch (Exception ex) { return(new StatusCodeResult(500)); } }