using System.Threading.Tasks;
public int Id { get; set; }
public string Name { get; set; }
public bool IsActive { get; set; }
public async static Task Main()
for (var i = 0; i < 10; i++) {
Console.WriteLine("In loop");
var result = await AsyncAdd(i, i + 1);
Console.WriteLine($"Result: {result}");
public async static Task<int> AsyncAdd(int a, int b) {
Console.WriteLine($"AsyncAdd: {a} + {b} = {a + b}");
return await Task.FromResult(a + b);