public ActionResult DeleteConfirmed(int id) { HataYakalayanBolum hatayakalayanbolum = db.HataYakalayanBolums.Find(id); db.HataYakalayanBolums.Remove(hatayakalayanbolum); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /HataYakalayanBolum/Delete/5 public ActionResult Delete(int id = 0) { HataYakalayanBolum hatayakalayanbolum = db.HataYakalayanBolums.Find(id); if (hatayakalayanbolum == null) { return(HttpNotFound()); } return(View(hatayakalayanbolum)); }
public ActionResult Edit(HataYakalayanBolum hatayakalayanbolum) { if (ModelState.IsValid) { db.Entry(hatayakalayanbolum).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hatayakalayanbolum)); }
public ActionResult Create(HataYakalayanBolum hatayakalayanbolum) { if (ModelState.IsValid) { db.HataYakalayanBolums.Add(hatayakalayanbolum); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hatayakalayanbolum)); }
public ActionResult Create(HataYakalayanBolum hatayakalayanbolum) { if (ModelState.IsValid) { db.HataYakalayanBolums.Add(hatayakalayanbolum); db.SaveChanges(); return RedirectToAction("Index"); } return View(hatayakalayanbolum); }
public ActionResult Edit(HataYakalayanBolum hatayakalayanbolum) { if (ModelState.IsValid) { db.Entry(hatayakalayanbolum).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(hatayakalayanbolum); }