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

            db.Cargas.Remove(cargas);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "CargaId,UsuarioId,FechaHoraCarga,CodigoMateria,CarnetAlumno,CorreoDocente,CodigoAula,HorarioClase,Dias,Ciclo")] Cargas cargas)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cargas).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cargas));
 }
        // GET: Cargas/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Cargas cargas = db.Cargas.Find(id);

            if (cargas == null)
            {
                return(HttpNotFound());
            }
            return(View(cargas));
        }