Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(decimal id)
        {
            BOK_KLIENT bOK_KLIENT = db.BOK_KLIENT.Find(id);

            db.BOK_KLIENT.Remove(bOK_KLIENT);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID_KLIENTA,ID_DANE_KONTAKTOWE,ID_ADRES,NAZWA")] BOK_KLIENT bOK_KLIENT)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bOK_KLIENT).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ID_ADRES           = new SelectList(db.BOK_ADRES, "ID_ADRES", "ULICA", bOK_KLIENT.ID_ADRES);
     ViewBag.ID_DANE_KONTAKTOWE = new SelectList(db.BOK_DANE_KONTAKTOWE, "ID_DANE_KONTAKTOWE", "EMAIL", bOK_KLIENT.ID_DANE_KONTAKTOWE);
     return(View(bOK_KLIENT));
 }
Exemplo n.º 3
0
        // GET: BOK_KLIENT/Details/5
        public ActionResult Details(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BOK_KLIENT bOK_KLIENT = db.BOK_KLIENT.Find(id);

            if (bOK_KLIENT == null)
            {
                return(HttpNotFound());
            }
            return(View(bOK_KLIENT));
        }
Exemplo n.º 4
0
        // GET: BOK_KLIENT/Edit/5
        public ActionResult Edit(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BOK_KLIENT bOK_KLIENT = db.BOK_KLIENT.Find(id);

            if (bOK_KLIENT == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ID_ADRES           = new SelectList(db.BOK_ADRES, "ID_ADRES", "ULICA", bOK_KLIENT.ID_ADRES);
            ViewBag.ID_DANE_KONTAKTOWE = new SelectList(db.BOK_DANE_KONTAKTOWE, "ID_DANE_KONTAKTOWE", "EMAIL", bOK_KLIENT.ID_DANE_KONTAKTOWE);
            return(View(bOK_KLIENT));
        }