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

            return View(jobtypes);
        }