// GET: MovieLists/Details/5 public IActionResult Details(int?id) { if (!_authmovieset.CheckUserId(id, _httpContextAccessor)) { return(Unauthorized()); } var movieSet = _movieset.Get(id); return(View(movieSet)); }
public bool CheckMovie(RepositoryMovieSet repomovieset, MyMovie myMovie) { MovieSet movieset = repomovieset.Get(myMovie.MovieSetID); return(movieset.MyMovies.Any(e => e.MovieID == myMovie.MovieID)); }