Create Send SMS Model
We are going to be following the typical MVC pattern, so we'll start with the 'M' which stands for Model. In Visual Studio add a new file to the Models folder called SmsModel.cs. Insert a using statement for System.ComponentModel.DataAnnotations at the top of this file and add the following code to it:
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
1
Introduction to this tutorial2
Prerequisites3
Create the SMS Project File4
Add Vonage Dotnet SDK5
Create Send SMS Model6
Create a Send SMS View7
Set up Startup Route8
Add an SMS Controller9
Configure the ASP.NET App10
Run the .NET App11
What's Next?