Ejemplo n.º 1
0
 public CrudControllerBase(
     PlayServiceContext context,
     DbSet <TEntity> entityDbSet)
 {
     _entityContext = entityDbSet;
     _context       = context;
 }
Ejemplo n.º 2
0
 // Dependecy injection of PlayServiceContext
 public AlbumsController(PlayServiceContext context)
     : base(context, context.Albums)
 {
 }
Ejemplo n.º 3
0
 // Dependecy injection of PlayServiceContext
 public SongsController(PlayServiceContext context)
     : base(context, context.Songs)
 {
 }
Ejemplo n.º 4
0
 // Dependecy injection of PlayServiceContext
 public GenresController(PlayServiceContext context)
     : base(context, context.Genres)
 {
 }
Ejemplo n.º 5
0
 // Dependecy injection of PlayServiceContext
 public PlaylistsController(PlayServiceContext context)
     : base(context, context.Playlists)
 {
 }
Ejemplo n.º 6
0
 // Dependecy injection of PlayServiceContext
 public ArtistsController(PlayServiceContext context)
     : base(context, context.Artists)
 {
 }