Esempio n. 1
0
        public async Task <PongEntity?> Get(string key, [FromServices] IPingPongStore pingPong)
        {
            var pong = await pingPong.GetSingleAsync(key);

            return(PongEntity.MapFrom(pong));
        }
Esempio n. 2
0
        public async Task <IEnumerable <PongEntity> > Get([FromServices] IPingPongStore pingPong)
        {
            var pongs = await pingPong.GetAsync();

            return(PongEntity.MapFrom(pongs));
        }