I have this line of code:
HttpResponseMessage aResponse = await aClient.PostAsync(theUri, theContent);
However, I have an error that says: The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'.
So I went to search and found this link: Troubleshooting HTTPClient asynchronous POST and reading results
I've tried what the answer does, but I still get that error. What should I do? Thanks a million
async-await, read the articles on myasync-awaitcuration.