public IQueryable <T> FindBy(Expression <Func <T, bool> > predicate) { IQueryable <T> query = context.Set <T>().Where(predicate).Where(x => x.DeletedOn == null); return(!query.Any() ? Enumerable.Empty <T>().AsQueryable() : query); }
protected GenericRepository(IJwtDbContext _context) { context = _context; dbSet = _context.Set <T>(); }