public IEnumerable <T> GetAllByFilter(object entity) { return(_context.Set <T>().Where(CustomFilter <T> .ContainFilter(entity)).AsEnumerable()); }