public IActionResult GetLogByAlarmId(int id) { if (repo.GetAlarmLogByAlarmId(id).Any()) { return(Ok(repo.GetAlarmLogByAlarmId(id))); } else { return(NotFound()); } }
public IActionResult GetLogByAlarmId(int id) { if (repo.GetAlarmLogByAlarmId(id).Any()) { return(Ok(repo.GetAlarmLogByAlarmId(id))); } else { return(NotFound()); } }