public ActionResult DeleteConfirmed(int id) { NobetGunKural nobetGunKural = _nobetGunKuralService.GetById(id); _nobetGunKuralService.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Adi,Aciklama")] NobetGunKural nobetGunKural) { if (ModelState.IsValid) { _nobetGunKuralService.Update(nobetGunKural); return(RedirectToAction("Index")); } return(View(nobetGunKural)); }
// GET: EczaneNobet/NobetGunKural/Edit/5 public ActionResult Edit(int id) { if (id < 1) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } NobetGunKural nobetGunKural = _nobetGunKuralService.GetById(id); if (nobetGunKural == null) { return(HttpNotFound()); } return(View(nobetGunKural)); }
public void Update(NobetGunKural nobetGunKural) { _nobetGunKuralDal.Update(nobetGunKural); }
public void Insert(NobetGunKural nobetGunKural) { _nobetGunKuralDal.Insert(nobetGunKural); }