Example #1
0
        //
        // GET: /MinuteChart/
        public ActionResult Index()
        {
            StockBDContext dbC      = new StockBDContext();
            MinuteChart    minChart = new MinuteChart(dbC);

            return(View(minChart));
        }
Example #2
0
        //AJAX data provider
        //make it static
        public string MinServer(string ticker, long lastx)
        {
            string result = MinuteChart.GetLiveData(ticker, lastx);

            //log the incoming requests for now
            // System.IO.File.AppendAllText(@"c:\www\stockbd\tmp\minreqlog.txt", lastx.ToString() + " : " + ticker + "\n");

            return(result);
        }
Example #3
0
        // GET: /MinuteChart/Show
        public ActionResult Show(string selectTicker, DateTime selectDate)
        {
            StockBDContext dbC      = new StockBDContext();
            MinuteChart    minChart = new MinuteChart(dbC, selectTicker, selectDate);

            ViewBag.ChosenTicker = selectTicker;
            minChart.GetData();
            return(View(minChart));
        }