while executing below code getting conversion error :how to covert from task to task
public class EmployeeData
{
public static async Task> GetEmployee()
{
List
{
new EmployeeData()
{
Id = 1,
Name="Abc"
}
};
return EmployeeData;
ShivPosted Apr 29, 2023, 2:55 PM
> taskList = GetEmployeeAsync(); Task taskSum = taskList.ContinueWith(t => {
List employeeList = t.Result.Cast().ToList();
long sum = employeeList.Sum(emp => emp.Id);
return sum;
});