Technically, both options work. However, you can choose one for various reasons. However, for me this seems the most important:
Simplicity, readability, maintainability - some lambda expressions, especially LINQ, are shorter and more convenient to maintain than their equivalents without lambda.
In this case, it seems that the lambda is actually using more space. Thus, personally, I would prefer the second option. However, in my other cases, lambdas are the best choice.
In terms of performance: as far as I know, lambdas are a bit slower. Of course, in this situation this difference is insignificant.
source share