Exemplo n.º 1
0
        public IActionResult GetMediaByComposer(string composer)
        {
            var currentMedia = _mediaRepository.GetByComposer(composer);

            if (currentMedia == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(_mediaRepository.GetByComposer(composer)));
            }
        }