Пример #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);
            }
        }
Пример #2
0
 public Repository(VideoGamesContext gamesContext)
 {
     this.gamesContext = gamesContext;
 }
Пример #3
0
 public MyGamesController(VideoGamesContext context)
 {
     _context = context;
 }
Пример #4
0
 public MSSQLVideogamesRepository(VideoGamesContext videoGamesContext)
 {
     _db = videoGamesContext;
 }