public async Task <bool> MarkAsSeenMovie(string title, int userid) { var movie = await GetMovieByTitle(title); var seenMovieModel = new SeenMovie { ImdbId = movie.ImdbId, TmdbId = movie.TmdbId, Date = DateTime.Now, UserId = userid }; await SeenMovies.InsertOneAsync(seenMovieModel); return(true); }
public bool Equals(SeenMovie other) { return(MovieId == other.MovieId && SoundtrackId == other.SoundtrackId); }