private WorldMeterReport LoadWorldMeterReport(WorldMeterReport input, string htmlContent)
        {
            HtmlDocument doc = new HtmlDocument();

            doc.LoadHtml(htmlContent);
            return(input);
        }
        public WorldMeterReport GetWorldmeterCountrywiseReportHistoryical()
        {
            var data   = _context.WorldMeterReports.ToList();
            var result = new WorldMeterReport(data);

            return(result);
        }
        private WorldMeterReport GetWorldMeterContent()
        {
            var htmlContent  = GetHtmlResponseFromPage("https://www.worldometers.info/coronavirus");
            var tableContent = GetHtmlContentById("main_table_countries_today", htmlContent);
            var data         = ReadTableRowToObjects("<div>" + tableContent + "</div>");

            var result = new WorldMeterReport(data);

            LoadWorldMeterReport(result, htmlContent);

            return(result);
        }