public bool Update(Employee employee)
 {
     var getEmployee = _context.Employees.Where(w => w.EmployeeID == employee.EmployeeID);
     if (getEmployee == null)
     {
         return false;
     }
     _context.Entry(employee).State = EntityState.Modified;
     return true;
 }
 public bool Update(int id, Employee employee)
 {
     if (employee != null)
     {
         var employeeItem = _unitOfWork.EmployeeRepository.GetByID(id);
         if (employeeItem != null)
         {
             employeeItem.FirstName = employee.FirstName;
             employeeItem.LastName = employee.LastName;
             employeeItem.Address = employee.Address;
             employeeItem.Phone = employee.Phone;
             employeeItem.Email = employee.Email;
             _unitOfWork.EmployeeRepository.Update(employeeItem);
             _unitOfWork.Save();
             return true;
         }
     }
     return false;
 }
 public Employee Insert(Employee employee)
 {
     _context.Employees.Add(employee);
     return employee;
 }
 public int Insert(Employee employee)
 {
     _unitOfWork.EmployeeRepository.Insert(employee);
     _unitOfWork.Save();
     return employee.EmployeeID;
 }