public ActionResult DeleteConfirmed(int id) { DebugEczane debugEczane = _debugEczaneService.GetById(id); _debugEczaneService.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,EczaneNobetGrupId,AktifMi")] DebugEczane debugEczane) { if (ModelState.IsValid) { _debugEczaneService.Update(debugEczane); return(RedirectToAction("Index")); } return(View(debugEczane)); }
public ActionResult Delete(int id) { if (id < 1) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DebugEczane debugEczane = _debugEczaneService.GetById(id); if (debugEczane == null) { return(HttpNotFound()); } return(View(debugEczane)); }
public ActionResult Create([Bind(Include = "Id,EczaneNobetGrupId,AktifMi")] DebugEczane debugEczane) { if (ModelState.IsValid) { _debugEczaneService.Insert(debugEczane); var eczaneler = new int[1] { debugEczane.Id }; return(RedirectToAction("Index")); } return(View(debugEczane)); }
public ActionResult Edit(int id) { if (id < 1) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DebugEczane debugEczane = _debugEczaneService.GetById(id); if (debugEczane == null) { return(HttpNotFound()); } var eczaneNobetGrubu = _eczaneNobetGrupService.GetDetayById(debugEczane.EczaneNobetGrupId); ViewBag.EczaneNobetGrupId = eczaneNobetGrubu; return(View(debugEczane)); }
public void Update(DebugEczane debugEczane) { _debugEczaneDal.Update(debugEczane); }
public void Insert(DebugEczane debugEczane) { _debugEczaneDal.Insert(debugEczane); }