how to create an api endpoint in c# in an mvc application code example Example: aspnet new api dotnet new webapi -o TodoApi