public static WebsiteDataModel DownloadWebsite(string websiteURL) { var output = new WebsiteDataModel(); var client = new WebClient(); output.WebsiteUrl = websiteURL; output.WebsiteData = client.DownloadString(websiteURL); return(output); }
public static string ReportWebsiteInfo(WebsiteDataModel data) { return($"{ data.WebsiteUrl } downloaded: { data.WebsiteData.Length } characters long.{ Environment.NewLine }"); }