Example #1
0
        public bool GenreExistsName(VideoGamesContext _context, string GenreName)
        {
            var GenreExists = _context.Genre.FirstOrDefault(x => x.GameGenre == GenreName);

            if (GenreExists == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Example #2
0
 public Repository(VideoGamesContext gamesContext)
 {
     this.gamesContext = gamesContext;
 }
Example #3
0
 public MyGamesController(VideoGamesContext context)
 {
     _context = context;
 }
Example #4
0
 public MSSQLVideogamesRepository(VideoGamesContext videoGamesContext)
 {
     _db = videoGamesContext;
 }