예제 #1
0
        public async Task AddNextMovie(int currentMovieId, int nextMovieId, int score)
        {
            NextMovie newEntry = new NextMovie
            {
                CurrentMovieId = currentMovieId,
                NextMovieId    = nextMovieId,
                Score          = score
            };
            await _context.AddAsync(newEntry);

            await _context.SaveChangesAsync();
        }