public ActionResult Edit(int id, Employee_type emp)
 {
     try
     {
         // TODO: Add update logic here
         if (ModelState.IsValid)
         {
             context.Entry(emp).State = System.Data.Entity.EntityState.Modified;
             context.SaveChanges();
             return(RedirectToAction("Index", "Config"));
         }
         else
         {
             return(View());
         }
     }
     catch
     {
         return(View());
     }
 }
 public ActionResult Create(Employee_type emp)
 {
     try
     {
         // TODO: Add insert logic here
         if (ModelState.IsValid)
         {
             context.Employee_type.Add(emp);
             context.SaveChanges();
             return(RedirectToAction("Index", "Config"));
         }
         else
         {
             return(View(emp));
         }
     }
     catch
     {
         return(View());
     }
 }