Ejemplo n.º 1
0
 public async Task <ActionResult> RemoveMovieFromList([FromBody] MovieWatchList movie)
 {
     try
     {
         var keycloakId = _tokenHelper.ValidateToken(movie.token);
         _log.LogInformation($"RemoveMovieFromList(MovieWatchList {keycloakId}) endpoint called");
         return(Ok(await _watchList.RemoveMovieToList(keycloakId, movie.movieId)));
     }
     catch (Exception e)
     {
         _log.LogError("couldn't Remove Movie From  List ", e, $"Exception({movie.movieId})", movie.movieId);
         return(StatusCode(500));
     }
 }