public void UploadPicture(MemoryStream chosenPhoto)
 {
     if (_customer == null) return;
     IsLoading = true;
     var data = chosenPhoto.ToArray();
     var service = new CustomerService(new ApiConfiguration(), null, _keyService);
     service.SavePhotoAsync(_companyFile, _customer.UID, data, Credentials)
            .ContinueWith(t =>
                {
                    IsLoading = false;
                }, TaskScheduler.FromCurrentSynchronizationContext());
 }