Example #1
0
        public ActionResult Show([Bind(Prefix = "id")] int systemId, MapSize size)
        {
            var model = new MonitorPointModel();

            model.System = dao.GetMonitorSystem(systemId);
            model.Map    = dao.GetMonitorMap(systemId, size);
            if (model.Map == null)
            {
                return(View("MapNotSet", model.System));
            }
            model.ContentList = dao.GetMonitorContents(systemId);
            model.MonitorList = dao.GetMonitorPoints(systemId, size);
            return(View(model));
        }
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var model = new MapMgmtModel();

            model.Map         = dao.GetMap(MapScale.Small);
            model.MonitorList = dao.GetMonitorPoints(null);
            return(View(model));
        }