private void SmsYolla(string tip, string gonderen, string mesaj) { using (radiusEntities dc = MyContext.Context(firma)) { SmsIslemleri sms = new SmsIslemleri(dc); AyarIslemleri ayarimiz = new AyarIslemleri(dc); if (tip == "gnltp") { //genel mesaj if (Session["teller"] != null) { string s = Session["teller"].ToString(); if (!String.IsNullOrEmpty(s)) { string[] teller = s.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); string mesaj_sonucu = sms.SmsGenel(ayarimiz, mesaj, teller); Session["mesele"] = sms.MesajSonucu(mesaj_sonucu); sms.CariMesajKaydet(teller); Response.Redirect("/Sonuc"); } } else { Session["mesele"] = "Oturumunuz zaman aşımına uğradı. Lütfen tekrar liste oluşturunuz!"; Response.Redirect("/Sonuc"); } } } }