public JokesService(JokesDbContext db) { this.db = db; }
/// <summary> /// GenericRepository Constructor /// </summary> /// <param name="context">Database Context</param> public GenericRepository(JokesDbContext context) { this.Context = context; this.DbSet = context.Set <TEntity>(); }