public ActionResult Index() { List <NazdaqData> display = HtmlParsing.getData(); NazdaqCSV.dataToCSV(display); return(View(display)); }
public ActionResult Refresh() { List <NDData> toInsert = new List <NDData>(); try { toInsert = HtmlParsing.getData(); } catch { return(RedirectToAction("ErrorPage", "Home")); } foreach (NDData item in toInsert) { SQLHelper.Insert(item, InformationMethods.retrieveUserData()); } return(RedirectToAction("Index", "Home")); }