コード例 #1
0
        public async Task<IHttpActionResult> GetTopTenSalesPeople()
        {
            var repository = new SalesPersonRepository();
            var results = await repository.GetTopTenSalesPeopleAsync();

            if (results == null) return NotFound();
            return Ok(results);
        }
コード例 #2
0
 public CachedSalesPersonRepository(SalesPersonRepository innerRepository)
 {
     _innerRepository = innerRepository;
 }
コード例 #3
0
 public CachedSalesPersonRepository(SalesPersonRepository innerRepository)
 {
     _innerRepository = innerRepository;
 }