public ActionResult DeleteConfirmed(int id) { TBLKUAFOR tBLKUAFOR = db.TBLKUAFOR.Find(id); db.TBLKUAFOR.Remove(tBLKUAFOR); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "KUAFORID,KUAFORAD,KUAFORSOYAD,KUAFORYAS,KUAFORNUMARA,KUAFOREMAİL")] TBLKUAFOR tBLKUAFOR) { if (ModelState.IsValid) { db.Entry(tBLKUAFOR).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tBLKUAFOR)); }
public ActionResult Create([Bind(Include = "KUAFORID,KUAFORAD,KUAFORSOYAD,KUAFORYAS,KUAFORNUMARA,KUAFOREMAİL")] TBLKUAFOR tBLKUAFOR) { if (ModelState.IsValid) { db.TBLKUAFOR.Add(tBLKUAFOR); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tBLKUAFOR)); }
// GET: AdminKuafor/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TBLKUAFOR tBLKUAFOR = db.TBLKUAFOR.Find(id); if (tBLKUAFOR == null) { return(HttpNotFound()); } return(View(tBLKUAFOR)); }