using System.Threading.Tasks;
Task NotifyPayer(string paymentCode);
Task NotifyReceiver(string paymentCode);
private static IMyApp ctx;
public static async Task Main()
paymentCode = await ctx.Payment();
ctx.NotifyPayer(paymentCode).GetAwaiter().GetResult();
ctx.NotifyReceiver(paymentCode).GetAwaiter().GetResult();