public bool GenreExistsName(VideoGamesContext _context, string GenreName) { var GenreExists = _context.Genre.FirstOrDefault(x => x.GameGenre == GenreName); if (GenreExists == null) { return(false); } else { return(true); } }
public Repository(VideoGamesContext gamesContext) { this.gamesContext = gamesContext; }
public MyGamesController(VideoGamesContext context) { _context = context; }
public MSSQLVideogamesRepository(VideoGamesContext videoGamesContext) { _db = videoGamesContext; }