public ActionResult Edit([Bind(Include = "Id,NobetGrupId,NobetGunKuralId,BaslangicTarihi,BitisTarihi")] NobetGrupGunKural nobetGrupGunKural) { if (ModelState.IsValid) { _nobetGrupGunKuralService.Update(nobetGrupGunKural); return(RedirectToAction("Index")); } ViewBag.NobetGrupId = new SelectList(_nobetGrupService.GetList().Select(s => new { s.Id, s.Adi }), "Id", "Adi", nobetGrupGunKural.NobetGrupId); ViewBag.NobetGunKuralId = new SelectList(_nobetGunKuralService.GetList().OrderBy(s => s.Adi), "Id", "Adi", nobetGrupGunKural.NobetGunKuralId); return(View(nobetGrupGunKural)); }
public void Update(NobetGrupGunKural nobetGrupGunKural) { _nobetGrupGunKuralDal.Update(nobetGrupGunKural); }
public void Insert(NobetGrupGunKural nobetGrupGunKural) { _nobetGrupGunKuralDal.Insert(nobetGrupGunKural); }