I'm trying to make the Main
async, so I tried:
class Program
{
static async Task Main(string[] args)
{
Books books = new Books();
await books.AddBooksAsync();
}
}
where AddBooksAsync
have this structure:
public async Task AddBooksAsync()
{
//some contents
}
I get this error:
Does not contain a static 'main' method suitable for an entry point