Пример #1
0
 public async Task <ActionResult> RemoveSerieFromList([FromBody] ShowWatchList show)
 {
     try
     {
         var keycloakId = _tokenHelper.ValidateToken(show.token);
         _log.LogInformation($"RemoveSerieFromList(MovieWatchList {show.token}) endpoint called");
         return(Ok(await _watchList.RemoveSerieToList(keycloakId, show.seriesId)));
     }
     catch (Exception e)
     {
         _log.LogError("couldn't Remove Series From  List ", e, $"Exception({show.seriesId})", show.seriesId);
         return(StatusCode(500));
     }
 }