예제 #1
0
        public async Task <IHttpActionResult> GetSingle()
        {
            var repo = new RandomUserRepository();

            return(Ok(await repo.GetSingleDummyUser()));
        }
예제 #2
0
 public async Task <IHttpActionResult> GetSingle()
 {
     return(Ok(await _pubSubCache.GetAsync(Request.RequestUri.PathAndQuery, () => _repo.GetSingleDummyUser())));
 }