Ejemplo n.º 1
0
        public ActionResult SymbolDisplay(SymbolInputModel model)
        {
            List <NDData> display = null;

            String dateString = model.DateInput.ToString("MM/dd/yyyy");

            Debug.WriteLine("\n\n\n" + dateString + "\n\n\n");

            if ((model.SymbolInput == null || model.SymbolInput == "") && !dateString.Equals("01/01/0001"))
            {
                display = SQLHelper.GetAllWithDate(dateString, InformationMethods.retrieveUserData());
            }
            else if ((model.SymbolInput != null || model.SymbolInput != "") && dateString.Equals("01/01/0001"))
            {
                display = SQLHelper.GetAllWithSymbol(model.SymbolInput, InformationMethods.retrieveUserData());
            }
            else
            {
                display = SQLHelper.CompareData(SQLHelper.GetAllWithSymbol(model.SymbolInput, InformationMethods.retrieveUserData()), dateString);
            }

            if (display != null)
            {
                NazdaqCSV.dataToCSV(display);
                NazdaqCSV.convertCSVtoPDF(display);
            }

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

            NazdaqCSV.dataToCSV(display);

            return(View(display));
        }