public ActionResult EditVM(Employee employee)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employee).State = EntityState.Modified;
         db.SaveChanges();
         Employee succeedEmployee = db.Employees.Include(i => i.Company).SingleOrDefault(x => x.EmployeeID == employee.EmployeeID);
         return Json(packEmployeeObject(succeedEmployee), JsonRequestBehavior.AllowGet);
     }
     return Json(new { respond = "Error, entry failed" }, JsonRequestBehavior.AllowGet);
 }
 private Object packEmployeeObject(Employee employee)
 {
     Object obj = new
     {
         EmployeeID = employee.EmployeeID,
         LastName = employee.LastName,
         FirstMidName = employee.FirstMidName,
         CompanyID = employee.CompanyID,
         Company = new
         {
             CompanyID = employee.Company.CompanyID,
             CompanyName = employee.Company.CompanyName
         }
     };
     return obj;
 }