public void CreateDevice(DomainDevice device)
 {
     _devicesRepository.CreateDevice(device?.ToInfrastructure());
 }