public ActionResult DeleteConfirmed(int id)
        {
            SpeakingLevel speakingLevel = db.SpeakingLevels.Find(id);

            db.SpeakingLevels.Remove(speakingLevel);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Description")] SpeakingLevel speakingLevel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(speakingLevel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(speakingLevel));
 }
        public ActionResult Create([Bind(Include = "Id,Description")] SpeakingLevel speakingLevel)
        {
            if (ModelState.IsValid)
            {
                db.SpeakingLevels.Add(speakingLevel);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(speakingLevel));
        }
        // GET: SpeakingLevels/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SpeakingLevel speakingLevel = db.SpeakingLevels.Find(id);

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