public void LoadBrowsingList(string inputBrowsing) { var listOfUrl = inputBrowsing .Split(new[] { ' ' }) .ToList(); foreach (var phoneNumber in listOfUrl) { try { var validUrl = new Browsing(phoneNumber); Console.WriteLine(this.PrintBrowse(validUrl)); } catch (Exception ex) { Console.WriteLine(ex.Message); } } }
public void LoadBrowsingList(string inputBrowsing) { var listOfUrl = inputBrowsing .Split(new[] { ' ' }) .ToList(); foreach (var phoneNumber in listOfUrl) { //try //{ var validUrl = new Browsing(phoneNumber); browsings.Add(validUrl); //Console.WriteLine(this.PrintBrowse(validUrl)); //} //catch (Exception ex) //{ // Console.WriteLine(ex.Message); //} } }
public string PrintBrowse(Browsing newBrowse) { return(newBrowse.PrintBrowsing()); }