Set Startup Route for SMS View

Open startup.cs and navigate to the app.UseEndpoints delegate and change Home to Sms in the MapControllerRoute request. It will now look like this:

app.UseEndpoints(endpoints =>
{
    endpoints.MapControllerRoute(
        name: "default",
        pattern: "{controller=Sms}/{action=Index}/{id?}");
});

How to Send an SMS With ASP.NET Core MVC

Enhance your .NET application by adding the ability to send SMS messages to users. This tutorial walks you through adding a simple form to your web application, and sending an SMS message to the number provided.



Steps