public IEnumerable <User> FindByCondition(Expression <Func <User, bool> > expression, Expression <Func <User, List <Recipe> > > expression2) { return(Repos.Set <User>().Include(expression2).Where(expression).AsNoTracking()); }
public IEnumerable <User> FindAll(Expression <Func <User, List <Recipe> > > expression) { return(Repos.Set <User>().Include <User, List <Recipe> >(expression).AsNoTracking()); }