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

            return View(jobcategory);
        }