public async Task <IActionResult> GetAllTypedSensorData([Required] string typeOfSensor) { if (typeOfSensor == null) { return(BadRequest()); } return(Ok(await _repository.GetAllTypedSensorDataAsync(typeOfSensor))); }