Ejemplo n.º 1
0
        //[Authorize(Roles = "User")]
        public async Task <IActionResult> GetPlaylistById(int id)
        {
            if (!ModelState.IsValid)
            {
                return(StatusCode(400));
            }

            var dto = await _manager.GetPlaylistById(id);

            var response = _mapper.Map <PlaylistGetListItemResponse>(dto);

            return(Ok(response));
        }