public ActionResult Yeni() { using (BankaEntities db = new BankaEntities()) { var model = new KullaniciFormViewModel() { KullaniciTipleri = db.KullaniciTipleris.ToList() }; return(View("Kayit", model)); } }
public ActionResult Guncelle(int id) { using (BankaEntities db = new BankaEntities()) { var model = new KullaniciFormViewModel() { KullaniciTipleri = db.KullaniciTipleris.ToList(), Kullanici = db.Kullanicis.Find(id) }; return(View("Guncelle", model)); } }