Exemple #1
0
        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));
        }
Exemple #2
0
 public async Task <IActionResult> Get([FromQuery] BrowseSensors query)
 {
     return(Collection(await _sensorService.BrowseAsync(query)));
 }