Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            TBLKUAFOR tBLKUAFOR = db.TBLKUAFOR.Find(id);

            db.TBLKUAFOR.Remove(tBLKUAFOR);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 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));
 }
Example #3
0
        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));
        }
Example #4
0
        // 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));
        }