I have the following:
var data1 = contentRepository.GetPk(pk);
var data2 = from d in data1
select new Content.RowKeyTitle {
RowKey = d.RowKey,
Title = d.Title,
Notes = d.Notes
};
return (data2);
Is there a way I could combine data1 and data2 into one expression?
Use lambda expressions instead of comprehension syntax