How do you find a needle in a haystack?
Of the three, I prefer option #3. The Single Responsibility Principle makes me not want to put searching capabilities on my DTOs or models. Their responsibility is to be data, not to find themselves, nor should needles need to know about haystacks, nor haystacks know about needles. For what it’s worth, I think it takes … Read more