public async Task <IActionResult> GetDeviceType(int id) { var deviceType = await _deviceTypeService.GetDeviceTypeAndSubDeviceTypeWithPropertiesByIdAsync(id); var deviceTypeDto = _mapper.Map <DeviceTypeDetailDto>(deviceType); return(Ok(deviceTypeDto)); }