Example #1
0
        public async Task OnGetAsync()
        {
            IList <StationModel> listaEmissoras = await _stationService.GetListAsync();

            Audience = await _audienceService.GetListAsync();

            foreach (var item in Audience)
            {
                item.Emissora_Nome = listaEmissoras.FirstOrDefault(x => x.Id == item.Emissora_Audiencia)?.Nome;
            }
        }
Example #2
0
 public async Task OnGetAsync()
 {
     Station = await _service.GetListAsync();
 }