Example #1
0
        public IActionResult Index()
        {
            EventWithAlarm eventWithAlarm = new EventWithAlarm(_context)
            {
                EventHis = _context.EventHistory.ToList(),
                AlarmHis = _context.AlarmHistory.ToList()
            };

            return(View(eventWithAlarm));
        }
Example #2
0
        public IActionResult Index(Reqmessage reqmessage)
        {
            string type = reqmessage.Type;

            string alarmID = reqmessage.AlarmID;

            EventWithAlarm eventWithAlarm = new EventWithAlarm(_context)
            {
                EventHis = _context.EventHistory.ToList(),
                AlarmHis = _context.AlarmHistory.ToList()
            };

            return(View(eventWithAlarm));
        }