Exemplo n.º 1
0
        public async Task <IActionResult> GetNews([FromQuery] int version = 0)
        {
            var features = await featuresService.GetFeaturesAsync(version);

            return(Ok(features));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetNews([FromQuery] int version = 0)
        {
            var features = await featuresService.GetFeaturesAsync(version, HttpContext.RequestAborted);

            return(Ok(features));
        }