public ActionResult UpdateEmployeeInfo(Employee e)
 {
     if (ModelState.IsValid)
     {
         eRepo.UpdateEmployee(e);
     }
     return RedirectToAction("ViewEmployees");
 }
 public ActionResult AddEmployeeInfo(Employee e)
 {
     eRepo.saveEmployee(e);
     return RedirectToAction("ViewEmployees");
 }
 public void saveEmployee(Employee e)
 {
     db.Employees.Add(e);
     db.SaveChanges();
 }
 public void UpdateEmployee(Employee emp)
 {
     db.Entry(emp).State = EntityState.Modified;
     db.SaveChanges();
 }
 public void DeleteEmployee(Employee e)
 {
     db.Employees.Remove(e);
     db.SaveChanges();
 }