I have the method below that is returning this error:
Error CS1983 The return type of an async method must be void, Task, Task<T>, a task-like type, IAsyncEnumerable<T>, or IAsyncEnumerator<T>
But when I click on the error number link in Visual Studio, it takes me to a Microsoft website that just says:
Sorry, we don't have specifics on this C# error
Here is the method:
private async String SaveAIguess(IFormFile file)
{
var picture = GetFile(file.FileName);
await StorageService.Save(picture, file.OpenReadStream());
var resourceUrl = Path.GetFullPath(file.FileName);
return resourceUrl;
}
Is there a way to make it asynchronous and still be able to return the resourceUrl?
Thanks!