public async Task <IActionResult> AddSpotifySongToPlaylist([FromQuery] int playlistId, [FromQuery] string spotifySongId) { int userId = ClaimHelper.FindNameIdentifier(HttpContext.User.Claims); var response = await _songService.AddSpotifySongToPlaylist(userId, playlistId, spotifySongId); if (!response.Success) { return(BadRequest(response.Message)); } SongDto songDto = _mapper.Map <Song, SongDto>(response.Resource); return(Ok(songDto)); }