Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            NextMasteryCourse nextMasteryCourse = db.NextMasteryCourses.Find(id);

            db.NextMasteryCourses.Remove(nextMasteryCourse);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 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));
 }
Exemple #3
0
        //
        // GET: /NextMasteryCourse/Delete/5

        public ActionResult Delete(int id = 0)
        {
            NextMasteryCourse nextmasterycourse = db.NextMasteryCourses.Find(id);

            if (nextmasterycourse == null)
            {
                return(HttpNotFound());
            }
            return(View(nextmasterycourse));
        }
Exemple #4
0
 public ActionResult Edit(NextMasteryCourse nextmasterycourse)
 {
     if (ModelState.IsValid)
     {
         db.Entry(nextmasterycourse).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(nextmasterycourse));
 }
Exemple #5
0
        public ActionResult Create([Bind(Include = "NextUniqueNumberId,NextAvailableNumber")] NextMasteryCourse nextMasteryCourse)
        {
            if (ModelState.IsValid)
            {
                db.NextMasteryCourses.Add(nextMasteryCourse);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nextMasteryCourse));
        }
Exemple #6
0
        public ActionResult Create(NextMasteryCourse nextmasterycourse)
        {
            if (ModelState.IsValid)
            {
                db.NextMasteryCourses.Add(nextmasterycourse);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nextmasterycourse));
        }
Exemple #7
0
        // 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));
        }
Exemple #8
0
 // GET: NextMasteryCourses
 public ActionResult Index()
 {
     //return View(db.NextMasteryCourses.ToList());
     return(View(NextMasteryCourse.getInstance()));
 }
Exemple #9
0
 // GET: NextMasteryCourses
 public ActionResult Index()
 {
     return(View(NextMasteryCourse.GetInstance()));
 }