public async Task <ActionResult> DeleteConfirmed(int id)
        {
            Examenes_Alumnos examenes_Alumnos = await db.Examenes_Alumnos.FindAsync(id);

            db.Examenes_Alumnos.Remove(examenes_Alumnos);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "IdExamenes,IdAlumnos,Date,HoraInitial,HoraFinal,intento,Calificacion")] Examenes_Alumnos examenes_Alumnos)
        {
            if (ModelState.IsValid)
            {
                db.Entry(examenes_Alumnos).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.IdAlumnos  = new SelectList(db.Alumnos, "IdAlumnos", "Nombres", examenes_Alumnos.IdAlumnos);
            ViewBag.IdExamenes = new SelectList(db.Examenes, "IdExamenes", "CodExamenes", examenes_Alumnos.IdExamenes);
            return(View(examenes_Alumnos));
        }
        // GET: ExamenesAlumnos/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Examenes_Alumnos examenes_Alumnos = await db.Examenes_Alumnos.FindAsync(id);

            if (examenes_Alumnos == null)
            {
                return(HttpNotFound());
            }
            return(View(examenes_Alumnos));
        }
        // GET: ExamenesAlumnos/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Examenes_Alumnos examenes_Alumnos = await db.Examenes_Alumnos.FindAsync(id);

            if (examenes_Alumnos == null)
            {
                return(HttpNotFound());
            }
            ViewBag.IdAlumnos  = new SelectList(db.Alumnos, "IdAlumnos", "Nombres", examenes_Alumnos.IdAlumnos);
            ViewBag.IdExamenes = new SelectList(db.Examenes, "IdExamenes", "CodExamenes", examenes_Alumnos.IdExamenes);
            return(View(examenes_Alumnos));
        }