I have the following Code
List<Task> tasks = new List<Task>();
if (!string.IsNullOrEmpty(OrgLocationID))
{
tasks.Add(GetOrgLocations());
}
tasks.Add(GetOrg());
tasks.Add(GetRoleTypes());
tasks.Add(GetOrgOrLocationUserInfo());
await Task.WhenAll(tasks);
How do i retrieve the results when each Task can return different data type ? Also how may i know if the some of them failed and may not return data ?