public EmployeeViewModel(Employee employee)
        {
            base.Id = employee.Id;
            base.FirstName = employee.FirstName;
            base.LastName = employee.LastName;
            base.DateOfBirth = employee.DateOfBirth;
            base.TeamId = employee.TeamId;
            base.Team = employee.Team;

            this.OriginalTeamId = employee.TeamId;
        }
        public ActionResult Create(Employee employee)
        {
            if (ModelState.IsValid)
            {
                db.Employees.Add(employee);
                db.SaveChanges();
                return RedirectToAction("Index", new { teamId = employee.TeamId });
            }

            ViewBag.TeamId = new SelectList(db.Teams, "Id", "Name");
            return View(employee);
        }
        public ActionResult Edit(EmployeeViewModel employeeModel)
        {
            if (ModelState.IsValid)
            {
                Employee employee = new Employee(employeeModel);

                db.Entry(employee).State = EntityState.Modified;
                db.SaveChanges();

                return RedirectToAction("Index", new { teamId = employeeModel.OriginalTeamId });
            }
            return View(employeeModel);
        }