public ActionResult SendUnicodeSMS(string to, string from, string text = "こんにちは世界") { var type = "unicode"; var results = SMSSender.SendSMSUnicode(to, from, text); if (results.messages.Count >= 1) { if (results.messages[0].status == "0") { ViewBag.unicoderesult = "Message sent successfully."; Debug.WriteLine("Message sent successfully."); } else { ViewBag.unicoderesult = $"Message failed with error: { results.messages[0].error_text}"; Debug.WriteLine($"Message failed with error: {results.messages[0].error_text}"); } } return(View("Index")); }