IList<Note> resources = new List<Note>();
var tasks = new List<Task>();
foreach (var item in result)
{
tasks.Add(ProcessItem(item));
}
await Task.WhenAll(tasks); //get the value from here and initialize into the resources variable
NoteList noteList = new NoteList ()
{
Resources = resources
};
return noteList;
IList<Note> resources = new List<Note>();
var tasks = new List<Task>();
foreach (var item in result)
{
tasks.Add(ProcessItem(item));
}
await Task.WhenAll(tasks); //get the value from here and initialize into the resources variable
NoteList noteList = new NoteList ()
{
Resources = resources
};
return noteList;