public ActionResult Edit([Bind(Include = "Id,NobetGrupGorevTipId,NobetAltGrupId,BaslamaTarihi,BitisTarihi")] AyniGunNobetTakipGrupAltGrup ayniGunNobetTakipGrupAltGrup) { if (ModelState.IsValid) { _ayniGunNobetTakipGrupAltGrupService.Update(ayniGunNobetTakipGrupAltGrup); return(RedirectToAction("Index")); } var nobetUstGrup = _nobetUstGrupSessionService.GetSession("nobetUstGrup"); var nobetGrupGorevTipler = _nobetGrupGorevTipService.GetDetaylar(nobetUstGrup.Id); var nobetAltGruplar = _nobetAltGrup.GetDetaylar(nobetUstGrup.Id); ViewBag.NobetAltGrupId = new SelectList(nobetAltGruplar, "Id", "NobetAltGrupTanim", ayniGunNobetTakipGrupAltGrup.NobetAltGrupId); ViewBag.NobetGrupGorevTipId = new SelectList(nobetGrupGorevTipler, "Id", "NobetGrupGorevTipAdi", ayniGunNobetTakipGrupAltGrup.NobetGrupGorevTipId); return(View(ayniGunNobetTakipGrupAltGrup)); }
public void Update(AyniGunNobetTakipGrupAltGrup ayniGunNobetTakipGrupAltG) { _ayniGunNobetTakipGrupAltGrupDal.Update(ayniGunNobetTakipGrupAltG); }
public void Insert(AyniGunNobetTakipGrupAltGrup ayniGunNobetTakipGrupAltG) { _ayniGunNobetTakipGrupAltGrupDal.Insert(ayniGunNobetTakipGrupAltG); }