예제 #1
0
        public async Task <ActionResult <IEnumerable <MusicViewDTO> > > GetAll()
        {
            var musicsDto = await musicService.GetAllMusicAsync();

            if (musicsDto == null)
            {
                return(NotFound());
            }

            return(Ok(musicsDto));
        }