public ActionResult Get(string id) { sendEmail sE = new sendEmail(); Hashtable ht = sE.send(id); ht.Add("f", "df"); JavaScriptSerializer js = new JavaScriptSerializer(); string strJson = js.Serialize(ht); return(Json(ht)); }
static void Main(string[] args) { sendData Data = new sendEmail(); Data._bridgeComponents = new webService(); Data.send(); Data._bridgeComponents = new ThirdPartyUI(); Data.send(); sendData Data1 = new sendSMS(); Data1._bridgeComponents = new webService(); Data1.send(); //sendData Data = new sendEmail(); //sendData Data1 = new sendSMS(); Data1._bridgeComponents = new ThirdPartyUI(); Data1.send(); }