示例#1
0
 public IEnumerable <int> GetPositivi(string regione)
 {
     if (regione.ToUpper().Contains("ITA"))
     {
         return(loadJson.GetDataFromWebNaz().OrderBy(x => x.Data).Select(x => x.Positivi).ToArray());
     }
     return(loadJson.GetDataFromWebRegione().Where(x => x.Regione.ToUpperInvariant().Contains(regione.ToUpperInvariant())).OrderBy(x => x.Data).Select(x => x.Positivi).ToArray());
 }