I have this statement that should project and return a list of attachments as follows :
var mappedAttachments = recordAction
.PPAttachments
.Select(async x => new AttachmentRequestModel()
{
AttachmentId = 1,
AttachmentContent = await GetReportAttachContentAsync(1),
AttachmentName = "name",
AttachmentType = "1"
})
.ToList();
This statement return a List<Task<AttachmentRequestModel>>
how can I change it to return List<AttachmentRequestModel>
instead?