public void Init()
        {
            var users = SqlRequests.UserScripts.ReadAllUsers.Read<User>(
                new List<DataPoint>());

            UserNames = users.Select(
                u => u.UserName).ToList();
            UserPerformance = new UserPerformance_Model();
            UserPerformance.Init(UserNames.FirstOrDefault());
        }
Ejemplo n.º 2
0
        public ActionResult LoadUserPerformance(string username)
        {
            var model = new UserPerformance_Model();
            model.Init(username);
            model.Load();

            var view = new UserPerformance_MainModule() { Model = model };
            return Json(new
            {
                module = view.ToHtml().ToString(),
                chartData = model.ChartData.ChartData,
                symbols = model.Symbols
            });
        }