public async Task<IHttpActionResult> GetTopTenSalesPeople()
        {
            var repository = new SalesPersonRepository();
            var results = await repository.GetTopTenSalesPeopleAsync();

            if (results == null) return NotFound();
            return Ok(results);
        }
 public CachedSalesPersonRepository(SalesPersonRepository innerRepository)
 {
     _innerRepository = innerRepository;
 }
Esempio n. 3
0
 public CachedSalesPersonRepository(SalesPersonRepository innerRepository)
 {
     _innerRepository = innerRepository;
 }