// GET: Admin/DepartmanYonetim public ActionResult DepartmanDuzenle(int?id) { DepartmanDuzenleViewModel model = new DepartmanDuzenleViewModel(); if (id != null) { model.Departman = _departmanYonetimi.Get(d => d.ID == id); } return(View(model)); }
public ActionResult CalisanGetir(int id) { ShowHomeViewModel model = new ShowHomeViewModel(); model.Calisan = _calisanYonetimi.Get(c => c.ID == id); model.Departman = _departmanYonetimi.Get(d => d.ID == model.Calisan.DepartmanID); return(PartialView(model)); }