public async Task <List <SensorDto> > BrowseAsync(BrowseSensors query) { var list = (await _repository.BrowseAsync()).Where(x => x.OrganisationId == query.OrganisationId); return(_mapper.Map <List <SensorDto> >(list)); }
public async Task <IActionResult> Get([FromQuery] BrowseSensors query) { return(Collection(await _sensorService.BrowseAsync(query))); }