public void DeletePhoto() { if (_customer == null) return; var service = new CustomerService(new ApiConfiguration(), null, _keyService); service.DeletePhotoAsync(_companyFile, _customer.UID, Credentials) .ContinueWith(t => { Picture = Default; IsLoading = false; }, TaskScheduler.FromCurrentSynchronizationContext()); }