Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Verbotax verbotax = db.Verbotax.Find(id);

            db.Verbotax.Remove(verbotax);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "id_verbo,nivel_tax,verbos")] Verbotax verbotax)
 {
     if (ModelState.IsValid)
     {
         db.Entry(verbotax).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.nivel_tax = new SelectList(db.Taxonomia, "nivel_tax", "categoria", verbotax.nivel_tax);
     return(View(verbotax));
 }
Пример #3
0
        // GET: Verbotax/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Verbotax verbotax = db.Verbotax.Find(id);

            if (verbotax == null)
            {
                return(HttpNotFound());
            }
            return(View(verbotax));
        }
Пример #4
0
        // GET: Verbotax/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Verbotax verbotax = db.Verbotax.Find(id);

            if (verbotax == null)
            {
                return(HttpNotFound());
            }
            ViewBag.nivel_tax = new SelectList(db.Taxonomia, "nivel_tax", "categoria", verbotax.nivel_tax);
            return(View(verbotax));
        }