public ActionResult AdminGuncelle(TBLADMİN p)
        {
            var adm = db.TBLADMİN.Find(p.ID);

            adm.KULLANİCİ = p.KULLANİCİ;
            adm.SİFRE     = p.SİFRE;
            adm.YETKİ     = p.YETKİ;
            db.SaveChanges();
            return(RedirectToAction("Index2"));
        }
Пример #2
0
        public ActionResult AdminGuncelle(TBLADMİN ad)
        {
            var admin = db.TBLADMİN.Find(ad.Admin_id);

            admin.KULLANICIADİ = ad.KULLANICIADİ;
            admin.MAIL         = ad.MAIL;
            admin.SIFRE        = ad.SIFRE;
            ;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #3
0
        public ActionResult AdminEkle(TBLADMİN ad)
        {
            if (!ModelState.IsValid)
            {
                return(View("AdminEkle"));
            }

            db.TBLADMİN.Add(ad);
            db.SaveChanges();
            return(View());
        }
Пример #4
0
        public ActionResult Giris(TBLADMİN t)
        {
            var bilgiler = db.TBLADMİN.FirstOrDefault(x => x.kulanici == t.kulanici && x.sifre == t.sifre);

            if (bilgiler != null)
            {
                FormsAuthentication.SetAuthCookie(bilgiler.kulanici, false);
                return(RedirectToAction("Index", "Veli"));
            }
            else
            {
                return(View());
            }
        }
Пример #5
0
        public ActionResult Giris(TBLADMİN t)
        {
            var bilgiler = db.TBLADMİN.FirstOrDefault(x => x.KULLANICI == t.KULLANICI && x.SİFRE == t.SİFRE);

            if (bilgiler != null)
            {
                FormsAuthentication.SetAuthCookie(bilgiler.KULLANICI, false);
                return(RedirectToAction("Index", "Musteri"));
            }
            else
            {
                return(View());
            }
        }
Пример #6
0
        public ActionResult Login(TBLADMİN t)
        {
            var bilgiler = db.TBLADMİN.FirstOrDefault(x => x.Kullanici == t.Kullanici && x.Sifre == t.Sifre);

            if (bilgiler != null)
            {
                FormsAuthentication.SetAuthCookie(bilgiler.Kullanici, false);
                Session["Kullanici"] = bilgiler.Kullanici.ToString();
                return(RedirectToAction("Index", "Kategori"));
            }
            else
            {
                return(View());
            }
        }
        public ActionResult Login(TBLADMİN p)
        {
            var bilgiler = db.TBLADMİN.FirstOrDefault(x => x.KULLANİCİ == p.KULLANİCİ && x.SİFRE == p.SİFRE);

            if (bilgiler != null)
            {
                FormsAuthentication.SetAuthCookie(bilgiler.KULLANİCİ, false);
                Session["KULLANİCİ"] = bilgiler.KULLANİCİ.ToString();
                return(RedirectToAction("Index", "istatistik"));
            }
            else
            {
                return(View());
            }
        }
 public ActionResult YeniAdmin(TBLADMİN p)
 {
     db.TBLADMİN.Add(p);
     db.SaveChanges();
     return(RedirectToAction("Index2"));
 }