public ActionResult DeleteConfirmed(int id) { NextGradedCourse nextgradedcourse = db.NextGradedCourses.Find(id); db.NextGradedCourses.Remove(nextgradedcourse); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /NextGradedCourse/Delete/5 public ActionResult Delete(int id = 0) { NextGradedCourse nextgradedcourse = db.NextGradedCourses.Find(id); if (nextgradedcourse == null) { return(HttpNotFound()); } return(View(nextgradedcourse)); }
public ActionResult Edit(NextGradedCourse nextgradedcourse) { if (ModelState.IsValid) { db.Entry(nextgradedcourse).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextgradedcourse)); }
public ActionResult Edit([Bind(Include = "NextUniqueNumberId,NextAvailableNumber")] NextGradedCourse nextGradedCourse) { if (ModelState.IsValid) { db.Entry(nextGradedCourse).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextGradedCourse)); }
public ActionResult Create(NextGradedCourse nextgradedcourse) { if (ModelState.IsValid) { db.NextGradedCourses.Add(nextgradedcourse); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextgradedcourse)); }
public ActionResult Create([Bind(Include = "NextUniqueNumberId,NextAvailableNumber")] NextGradedCourse nextGradedCourse) { if (ModelState.IsValid) { db.NextGradedCourses.Add(nextGradedCourse); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextGradedCourse)); }
// GET: NextGradedCourses/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } NextGradedCourse nextGradedCourse = db.NextGradedCourses.Find(id); if (nextGradedCourse == null) { return(HttpNotFound()); } return(View(nextGradedCourse)); }
// // GET: /NextGradedCourse/ public ActionResult Index() { return(View(NextGradedCourse.GetInstance())); }
// GET: NextGradedCourses public ActionResult Index() { //return View(db.NextGradedCourses.ToList()); return(View(NextGradedCourse.getInstance())); }