If Statement In Linq

Ideally we would like to have a method without the magic strings.