public async Task<IHttpActionResult> GetEmployee(int id) { var repository = new EmployeeRepository(); var employee = await repository.GetAsync(id); if (employee == null) return NotFound(); return Ok(employee); }
public CachedEmployeeRepository(EmployeeRepository innerRepository) { _innerRepository = innerRepository; }