コード例 #1
0
        // GET: MovieLists/Details/5
        public IActionResult Details(int?id)
        {
            if (!_authmovieset.CheckUserId(id, _httpContextAccessor))
            {
                return(Unauthorized());
            }
            var movieSet = _movieset.Get(id);

            return(View(movieSet));
        }
コード例 #2
0
        public bool CheckMovie(RepositoryMovieSet repomovieset, MyMovie myMovie)
        {
            MovieSet movieset = repomovieset.Get(myMovie.MovieSetID);

            return(movieset.MyMovies.Any(e => e.MovieID == myMovie.MovieID));
        }