public async Task <IEnumerable <Models.DTO.Type> > Fetch( string tenantId, CancellationToken cancellationToken) { var devices = await _typeRepository.Fetch( tenantId, cancellationToken); return(devices?.Select(TypeMapper.MapToDto) ?? new List <Models.DTO.Type>()); }