Beispiel #1
0
        public WebplayerController(SpookifyContext context)
        {
            // Dapper framework connections
            // _dbConnector = connect;
            // userFactory = new UserFactory();

            // Entity Framework connections
            _context = context;
        }
Beispiel #2
0
        public ApiController(SpookifyContext context)
        {
            _context = context;

            if (_context.Artists.Count() == 0)
            {
                _context.Artists.Add(new Artist {
                    ArtistName = "Artist1"
                });
                _context.SaveChanges();
            }
        }
Beispiel #3
0
 public ChartController(SpookifyContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public PlaylistController(SpookifyContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public SearchController(SpookifyContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public ArtistController(SpookifyContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public AlbumController(SpookifyContext context)
 {
     _context = context;
 }