示例#1
0
        public ActionResult LoadPerformanceChart(string symbol, string username)
        {
            PerformanceChart_Model PerformaceChart = new PerformanceChart_Model() { Symbol = symbol, UserName = username };
            PerformaceChart.Init();
            PerformaceChart.Load();

            return Json(new
            {
                chartData = PerformaceChart.ChartData
            });
        }
        public void Init(string username)
        {
            ReadSymbols(username);

            // grab the all the user's picks for the first stock symbol
            ChartData = new PerformanceChart_Model() {
                Symbol = Symbols.FirstOrDefault(),
                UserName = username
            };
            ChartData.Init();
        }