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 Authenticator(userModel item) { userModel AuthenticatedUser = SQLHelper.ValidateUser(item); if (AuthenticatedUser != null) { InformationMethods.createUserData(item); return(View("../Home/Index")); } return(RedirectToAction("loginError")); }
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")); }