Example #1
0
        public ActionResult Overview()
        {
            var store = new MetaContext(db);
            var stats = new VmStatistics();
            stats.ResourceStats = store.GetResourceStats();

            return View(stats);
        }
Example #2
0
        public ActionResult Overview()
        {
            var db = MongoInfrastructureFactory.GetMongoDatabase(Settings.MongoUrl);
            var store = new MetaContext(db);
            var stats = new VmStatistics();
            stats.ResourceStats = store.GetResourceStats();

            return View(stats);
        }