Ejemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <InternetDto> > > GetInternet()
        {
            var serviceResult = await _destinationService.FilterInternet();

            if (serviceResult.ResponseCode != ResponseCode.Success)
            {
                return(BadRequest(serviceResult.Error));
            }

            return(Ok(serviceResult.Result.Select(x => new InternetDto
            {
                WifiQuality = x.WifiQuality
            }).ToList()));
        }