public IActionResult Index() { EventWithAlarm eventWithAlarm = new EventWithAlarm(_context) { EventHis = _context.EventHistory.ToList(), AlarmHis = _context.AlarmHistory.ToList() }; return(View(eventWithAlarm)); }
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)); }