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