예제 #1
0
파일: Genre.cs 프로젝트: kemp1km/VideoGames
        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;
 }