예제 #1
0
        public ActionResult StartPoint(int id)
        {
            var model = new MonitorMapStartPointModel {
                Map = _dao.GetMonitorMap(id),
                Pin = _dao.GetMonitorContent(0)
            };

            return(View(model));
        }
예제 #2
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));
        }