public ActionResult DeleteConfirmed(int id) { CGradoAlumno cGradoAlumno = db.CGradoAlumnoes.Find(id); db.CGradoAlumnoes.Remove(cGradoAlumno); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IDGrado,GradoAlumno")] CGradoAlumno cGradoAlumno) { if (ModelState.IsValid) { db.Entry(cGradoAlumno).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cGradoAlumno)); }
public ActionResult Create([Bind(Include = "IDGrado,GradoAlumno")] CGradoAlumno cGradoAlumno) { if (ModelState.IsValid) { db.CGradoAlumnoes.Add(cGradoAlumno); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cGradoAlumno)); }
// GET: CGradoAlumnoes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CGradoAlumno cGradoAlumno = db.CGradoAlumnoes.Find(id); if (cGradoAlumno == null) { return(HttpNotFound()); } return(View(cGradoAlumno)); }