Exemple #1
0
        public async Task <IActionResult> UpdateShowStatus(string id, [FromBody] AddToHistory model)
        {
            var show = await _omdbApi.GetById(id);

            if (show.Type == ShowType.Episode)
            {
                return(UpdateEpisodeStatus(id, model));
            }

            _watchlistService.SetStatus(CurrentUserId, id, model.WatchStatus);

            return(Ok(_watchlistService.GetStatusForShow(CurrentUserId, id)));
        }