public ActionResult CheckSite(Website website) { ViewBag.JumbotronPhrase = ""; try { website.FixUrl(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); return(RedirectToAction("Index", "Home", new { error = "The provided URL was invalid." })); } website.GetStyleRules(); if (website.rules == null) { return(RedirectToAction("Index", "Home", new { error = "The provided URL did not contain any parseable stylesheets." })); } website.FilterColorRules(); return(View(website)); }