how to use a api in visual studio 2019 code example Example: aspnet new api dotnet new webapi -o TodoApi