Пример #1
0
        public IActionResult Get(string country)
        {
            WorldCasesInfo cases;
            CaseProcessor  processor = new CaseProcessor(new CountryCaseInfo());
            string         url       = "https://www.worldometers.info/coronavirus/country/" + country;

            cases = processor.GetCasesInfo(url, country);
            return(Ok(cases));
        }
Пример #2
0
        public IActionResult Get()
        {
            WorldCasesInfo cases;
            CaseProcessor  processor = new CaseProcessor(new WorldCasesInfo());
            string         url       = "https://www.worldometers.info/coronavirus/";

            cases = processor.GetCasesInfo(url, string.Empty);
            return(Ok(cases));
        }