Exemple #1
0
        public async Task <IActionResult> GetDeviceType(int id)
        {
            var deviceType = await _deviceTypeService.GetDeviceTypeAndSubDeviceTypeWithPropertiesByIdAsync(id);

            var deviceTypeDto = _mapper.Map <DeviceTypeDetailDto>(deviceType);

            return(Ok(deviceTypeDto));
        }