public CrudControllerBase( PlayServiceContext context, DbSet <TEntity> entityDbSet) { _entityContext = entityDbSet; _context = context; }
// Dependecy injection of PlayServiceContext public AlbumsController(PlayServiceContext context) : base(context, context.Albums) { }
// Dependecy injection of PlayServiceContext public SongsController(PlayServiceContext context) : base(context, context.Songs) { }
// Dependecy injection of PlayServiceContext public GenresController(PlayServiceContext context) : base(context, context.Genres) { }
// Dependecy injection of PlayServiceContext public PlaylistsController(PlayServiceContext context) : base(context, context.Playlists) { }
// Dependecy injection of PlayServiceContext public ArtistsController(PlayServiceContext context) : base(context, context.Artists) { }