public ActionResult Index()
        {
            List <NazdaqData> display = HtmlParsing.getData();

            NazdaqCSV.dataToCSV(display);

            return(View(display));
        }
예제 #2
0
        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"));
        }