public ActionResult Index(TBLKullanicilar kullanici) { if (!ModelState.IsValid) { return(View()); } else { kullanici.Rol = "User"; db.Entry(kullanici).State = System.Data.Entity.EntityState.Added; db.SaveChanges(); return(RedirectToAction("Index")); } }