Exemplo n.º 1
0
 public ActionResult Satis()
 {
     if (Session["User"] != null)
     {
         int id     = int.Parse(Session["User"].ToString());
         var Gonder = UrunRepo.StokListe();
         VMRAM.RamData  = UrunRepo.SinifKoduGet();
         VMRAM.RamData2 = UrunRepo.SinifTanimiGet();
         VMRAM.SecData  = UrunRepo.SectionGet();
         VMRAM.RamData3 = MusterilerRepo.TumUyelerAjax();
         ViewBag.Class  = "text-warning";
         ViewBag.Text   = "Otomatik Stok ve Fiyat Yükleme Sistemi V.0.4 (Beta)";
         return(View(Gonder));
     }
     else
     {
         TempData["UyariTipi"] = "text-danger";
         TempData["Sonuc"]     = "Tarayıcıda Oturum Süreniz Dolmuş! Lütfen Tekrar Oturum Açın!";
         return(RedirectToAction("Logon", "Login"));
     }
 }
Exemplo n.º 2
0
        public ActionResult MusteriBul(string name) //Ajax
        {
            var gonder = MusterilerRepo.MusteriAjax(name);

            return(Json(gonder, JsonRequestBehavior.AllowGet));
        }