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