public async Task GetAllCovidRawData() { var allCountiesRawData = new Dictionary <string, string>(); foreach (var county in CountyList.Where(county => !allCountiesRawData.ContainsKey(county.CountyName))) { string countyRawData = await CovidDataService.GetCARawCovidJsonDataByCounty(county.CountyName); allCountiesRawData.Add(county.CountyName, countyRawData); } await DownloadZip(allCountiesRawData, "COVID_Data", "CAOpenData_COVID_All_Counties"); }
public async Task GetCasesRawDataPerCounty() { string rawData = await CovidDataService.GetCARawCovidJsonDataByCounty(SelectedCounty?.CountyName); await DownloadJsonFile(rawData, $"{SelectedCounty?.CountyName}_CAOpenData_COVID_{DateTime.Now:yyyy-MM-dd}.json"); }