public void UpdateEmployee(Employee employee) { var employeeToUpdate = Employees.FirstOrDefault(c => c.Id == employee.Id); if ( employeeToUpdate != null ) employeeToUpdate.InOffice = employee.InOffice; }
public IHttpActionResult Post(Employee employee) { _employeeRepository.UpdateEmployee(employee); return Ok(); }