1 public List<ProjectMember> GetAll(Customer info)
2 {
3 var query = (from x in base.Db.Customers
4 select x);
5
6 if(info.CustomerGroup != 0 )
7 {
8 query = query.Where(x => x.CustomerGroup == info.CustomerGroup);
9 }
10
11 return query.ToList();
12 }