Create SMS In ASP.net MVC
string keyword = Request["kw"];
Log.Info(string.Format("carrier:{0} - tracking.ID:{1} - keyword:{2}", carrier.ToString(), redirectTracking.ID, keyword));
string action = Request["action"];
if (action == null) action = "";
// carrier = Carrier.Indosat;
if (action.ToLower() == "mo" || carrier == Carrier.Unknown || carrier == Carrier.XL)
{
string shortcode = Request["sc"];
string moUri =
PSession.Phone.IsAndroidPhone
? string.Format("sms:{0}?body=REG%20{1}%20{2}",
shortcode, keyword, redirectTracking.ID)
: string.Format("sms:{0}&body=REG%20{1}%20{2}",
shortcode, keyword, redirectTracking.ID);
Log.Info(string.Format("shortcode:{0} - moUri:{1}", shortcode, moUri));
return Redirect(moUri);
}
Tidak ada komentar