Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(decimal id)
        {
            BOK_OPERATOR bOK_OPERATOR = db.BOK_OPERATOR.Find(id);

            db.BOK_OPERATOR.Remove(bOK_OPERATOR);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID_OPERATOR,NAZWA")] BOK_OPERATOR bOK_OPERATOR)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bOK_OPERATOR).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bOK_OPERATOR));
 }
Ejemplo n.º 3
0
        public ActionResult Create([Bind(Include = "ID_OPERATOR,NAZWA")] BOK_OPERATOR bOK_OPERATOR)
        {
            if (ModelState.IsValid)
            {
                db.BOK_OPERATOR.Add(bOK_OPERATOR);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bOK_OPERATOR));
        }
Ejemplo n.º 4
0
        // GET: BOK_OPERATOR/Delete/5
        public ActionResult Delete(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BOK_OPERATOR bOK_OPERATOR = db.BOK_OPERATOR.Find(id);

            if (bOK_OPERATOR == null)
            {
                return(HttpNotFound());
            }
            return(View(bOK_OPERATOR));
        }