public ActionResult Edit([Bind(Include = "id,nombres_completos,username,password,tipo")] tbl_users_jueces tbl_users_jueces)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_users_jueces).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_users_jueces));
 }
 public ActionResult Edit([Bind(Include = "id,fk_candidatas_id,fk_users_id,nota1,nota2,nota3")] tbl_presentacion_dos tbl_presentacion_dos)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_presentacion_dos).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.fk_candidatas_id = new SelectList(db.tbl_candidatas, "id", "nombres", tbl_presentacion_dos.fk_candidatas_id);
     ViewBag.fk_users_id      = new SelectList(db.tbl_users_jueces, "id", "nombres_completos", tbl_presentacion_dos.fk_users_id);
     return(View(tbl_presentacion_dos));
 }
        public ActionResult Edit([Bind(Include = "id,nombres,apellidos,imagen,respresentacion")] tbl_candidatas tbl_candidatas)
        {
            HttpPostedFileBase imageFile = Request.Files[0];
            WebImage           imagen    = new WebImage(imageFile.InputStream);

            tbl_candidatas.imagen = imagen.GetBytes();

            if (ModelState.IsValid)
            {
                db.Entry(tbl_candidatas).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            return(View(tbl_candidatas));
        }