Esempio n. 1
0
        public ActionResult GirisYap(TBLKULLANIC t)
        {
            var bilgiler = db.TBLKULLANIC.FirstOrDefault(x => x.AD == t.AD && x.SIFRE == t.SIFRE);

            if (bilgiler != null)
            {
                FormsAuthentication.SetAuthCookie(bilgiler.AD, false);
                return(RedirectToAction("Index", "Default"));
            }
            else
            {
                return(View());
            }
        }
Esempio n. 2
0
 public ActionResult YeniSifre(TBLKULLANIC p)
 {
     db.TBLKULLANIC.Add(p);
     db.SaveChanges();
     return(View());
 }