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()); } }
public ActionResult YeniSifre(TBLKULLANIC p) { db.TBLKULLANIC.Add(p); db.SaveChanges(); return(View()); }