public ActionResult DanismanKayit(DanismanBolum danismanBolum) { danismanBolum.dbDanisman.DanismanBolumu = bolumManager.Get(danismanBolum.SecilenBolumId); if (danismanManager.Add(danismanBolum.dbDanisman)) { return(RedirectToAction("Index", "Home")); } else { return(View(new DanismanBolum { dbBolums = bolumManager.GetAll(), dbDanisman = new dbDanisman() })); } }
public ActionResult DanismanEkle(dbDanisman dbDanisman) { danismanManager.Add(dbDanisman); return(RedirectToAction("Index")); }