public async Task <bool> MarkAsSeen(int userid, string tvmazeid, string tmdbid, int season, int episode, string showname) { var seriesList = await GetSeriesByTitle(showname); var series = seriesList.First(); var isitSeen = await _seriesRepository.IsItSeen(userid, series.TvMazeId, series.TmdbId, season, episode); if (!isitSeen) { await _seriesRepository.MarkAsSeen(userid, series.TvMazeId, series.TmdbId, season, episode); await _seriesRepository.DeleteStartedEpisode(series.TvMazeId, series.TmdbId, season, episode); return(true); } return(false); }