I have the following code:
public void SalesCount(string customerId) { .. .. return ...; } var resultQuery = dataContext.Customers .Where (c => c.N
yes, you can.
but you should change return type for your function:
public **int** SalesCount(string customerId) { .. .. return 500; } var resultQuery = dataContext.Customers.AsEnumerable() .Where (c => c.Name == "Alugili" && SalesCount(c.CustomerId) < 100);