C# async and sync switch

Use Task.FromResult() and Task.Run() when changing a normal method to async function. Use (Task).GetAwaiter().GetResult() to get the result from an async method in a normal function.