public ActionResult BolumEkle(BolumFakulte bolumFakulte) { bolumFakulte.dbBolum.Fakulte = fakulteManager.Get(Convert.ToInt32(bolumFakulte.SecilenFakulteId)); bolumManager.Add(bolumFakulte.dbBolum); return(RedirectToAction("Index")); }
public ActionResult BolumListele(BolumListele bolumListele) { bolumListele.dbFakultes = fakulteManager.GetAll(); bolumListele.bolumler = fakulteManager.Get(Convert.ToInt32(bolumListele.SecilenFakulteId)).Bolumler; return(View(bolumListele)); }