public ActionResult Create(Employee employee)
        {
            if (ModelState.IsValid)
            {
                employee.DepartmentId = 1;
                _repository.InsertOrUpdate(employee);
                _repository.Save();
                return RedirectToAction("Index");
            }

            return View(employee);
        }
 public ActionResult Edit(Employee employee)
 {
     if (ModelState.IsValid)
     {
         _repository.InsertOrUpdate(employee);
         _repository.Save();
         return RedirectToAction("Index");
     }
     return View(employee);
 }
 public void InsertOrUpdate(Employee employee)
 {
     throw new NotImplementedException();
 }
 public void Edit(Employee entity)
 {
     throw new NotImplementedException();
 }
 public void Delete(Employee entity)
 {
     _items.Remove(entity);
 }
 public void Add(Employee entity)
 {
     _items.Add(entity);
 }