public ActionResult DanismanProjeEkle(ProjeDanisman projeDanisman) { projeDanisman.dbProje.Danisman = danismanManager.Get(Convert.ToInt32(projeDanisman.SecilenDanismanId)); projeManager.Add(projeDanisman.dbProje); return(RedirectToAction("Index")); }
public ActionResult TezFikirEkle(TezFikirDanisman tezFikirDanisman) { tezFikirDanisman.tezFikir.Danisman = danismanManager.Get(Convert.ToInt32(tezFikirDanisman.SecilenDanismanId)); tezFikirDanisman.tezFikir.Gonderen = ogrenciManager.Get(User.Identity.Name); tezFikirDanisman.tezFikir.FikirYorum = ""; tezFikirManager.Add(tezFikirDanisman.tezFikir); return(RedirectToAction("Index", "Home")); }
public ActionResult TezFikirleriListele() { List <dbTezFikir> temp = new List <dbTezFikir>(); var TezFikirler = danismanManager.Get(User.Identity.Name).TezFikirleri; if (TezFikirler != null) { foreach (var item in danismanManager.Get(User.Identity.Name).TezFikirleri) { temp.Add(item); } } return(View(temp)); }