We’re rewarding the question askers & reputations are being recalculated! Read more.

First off, the Include is ignored because you project the result to a new result (Select(x => new{ ... }). So you may as well remove it. Then, there is some room for improvement by eliminating the repetitive parts. It's much easier to do this in query syntax: var customers = from cst in _customerRepository.All() // Assuming this method exists let ...

Only top voted, non community-wiki answers of a minimum length are eligible