public IEnumerable <IAirline> GetAll(Expression <Func <IAirline, bool> > filter) { var allEntities = RepositoryMethods.GetAll <Airline>(this.context); if (filter != null) { return(allEntities.Where(filter).ToList()); } return(allEntities.ToList()); }