[HttpPost]
public ActionResult SendMessage()
{
// TheTextingDemo.Models.ConfigurationSettings s1 = new Models.ConfigurationSettings();
// string API_KeY = s1.API_KEY;
string API_KEY = "wwpiub49a1";
string API_SECRET = "j5hsuadzdd";
string TO = "923215029981";
string Message = "Hello world";
string sURL;
StreamReader objReader;
//string ssurl="https://www.thetexting.com/rest/sms/json/message/send?api_key=wwpiub149a1&api_secret=j5hsuacmdzdd&to=923215029981&text=Hello"
sURL = "https://www.thetexting.com/rest/sms/json/message/send?api_key=" + API_KEY + "&api_secret=" + API_SECRET + "&to=" + TO + "&text=" + Message;
WebRequest wrGETURL;
wrGETURL = WebRequest.Create(sURL);
try
{
Stream objStream;
objStream = wrGETURL.GetResponse().GetResponseStream();
objReader = new StreamReader(objStream);
objReader.Close();
}
catch (Exception ex)
{
ex.ToString();
}
return RedirectToAction("SendSMS");
}
Hi I want to call a simple Method of sending sms from my simple View having some parameters i have written the method but when i am calling it says the resources could not found i do not want to create a view ans show it on submit i just want a method call and the view should remain the same.my method is in home controller with name SendMessage
What i have tried
but it says the resource not found and method did not called

Danish HabibRank #2,024 · 715 reputationPosted Feb 3, 2017, 9:26 AM EST
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Feb 3, 2017, 11:37 AM EST
Catcher WongRank #286 · 8.8K reputationPosted Feb 3, 2017, 2:18 PM EST
Catcher WongRank #286 · 8.8K reputationPosted Feb 4, 2017, 1:59 AM EST
Catcher WongRank #286 · 8.8K reputationPosted Feb 4, 2017, 2:50 AM EST
Danish HabibRank #2,024 · 715 reputationPosted Feb 4, 2017, 3:51 AM EST
Catcher Wong
You solution worksMark TaborRank #914 · 2.3K reputationPosted Feb 4, 2017, 7:00 AM EST
Catcher WongRank #286 · 8.8K reputationPosted Feb 4, 2017, 3:48 PM EST