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));
 }
Exemple #2
0
 public void Update(NobetGrupGunKural nobetGrupGunKural)
 {
     _nobetGrupGunKuralDal.Update(nobetGrupGunKural);
 }
Exemple #3
0
 public void Insert(NobetGrupGunKural nobetGrupGunKural)
 {
     _nobetGrupGunKuralDal.Insert(nobetGrupGunKural);
 }