public ActionResult Create(EducationLevel educationlevel)
        {
            if (ModelState.IsValid)
            {
                repository.Insert(educationlevel);
                repository.Save();
                return RedirectToAction("Index");
            }

            return View(educationlevel);
        }
        public ActionResult Create(EducationLevel educationlevel)
        {
            if (ModelState.IsValid)
            {
                db.EducationLevels.Add(educationlevel);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(educationlevel);
        }
 public ActionResult Edit(EducationLevel educationlevel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(educationlevel).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(educationlevel);
 }