Example #1
0
        public async Task <IActionResult> GetDeviceTypes([FromQuery] PagingParams pagingParams)
        {
            var deviceTypes = await _deviceTypeService.GetDevicesWithTypeAsync(pagingParams);

            var deviceTypesDto = _mapper.Map <List <DeviceTypeListDto> >(deviceTypes);

            return(Ok(deviceTypesDto));
        }