public ActionResult YeniOgrenci(TableOgrenciler p) { var klp = db.TableKulupler.Where(m => m.kulupID == p.TableKulupler.kulupID).FirstOrDefault(); p.TableKulupler = klp; db.TableOgrenciler.Add(p); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniKulup(TBL_Kulupler p) { db.TBL_Kulupler.Add(p); db.SaveChanges(); return(View()); }
public ActionResult YeniKayit(TableDersler p) { db.TableDersler.Add(p); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult NotGiris(TBL_Notlar p) { db.TBL_Notlar.Add(p); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniSinav(TableNotlar p) { db.TableNotlar.Add(p); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniDers(TBL_Dersler p) { db.TBL_Dersler.Add(p); db.SaveChanges(); return(View()); }