public ActionResult DeleteConfirmed(int id)
        {
            p_serie p_serie = db.p_serie.Find(id);

            db.p_serie.Remove(p_serie);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,codigo,nombre,id_organizacion")] p_serie p_serie)
 {
     if (ModelState.IsValid)
     {
         db.Entry(p_serie).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.id_organizacion = new SelectList(db.p_organizacion, "id_empresa", "nombre", p_serie.id_organizacion);
     return(View(p_serie));
 }
        // GET: p_serie/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            p_serie p_serie = db.p_serie.Find(id);

            if (p_serie == null)
            {
                return(HttpNotFound());
            }
            return(View(p_serie));
        }
        // GET: p_serie/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            p_serie p_serie = db.p_serie.Find(id);

            if (p_serie == null)
            {
                return(HttpNotFound());
            }
            ViewBag.id_organizacion = new SelectList(db.p_organizacion, "id_empresa", "nombre", p_serie.id_organizacion);
            return(View(p_serie));
        }