public async Task Delete(Profile profile) { if (profile == null) { return; } await _storage.Delete(profile); }
private async Task DeleteInApi(Profile profile) { if (profile == null) { return; } try { await _apiProfiles.Delete(profile); _cancellationToken.ThrowIfCancellationRequested(); } catch (ProfileException ex) { _logger.Error(ex.CombinedMessage()); if (ex.Error != ProfileError.NotFound) { _failed = true; ErrorMessage = ex.Message; } } }
public Task RemoveProfile(Profile profile) { return(_profiles.Delete(profile)); }
public async Task Delete(Profile profile) { await _profiles.Delete(profile); Sync(); }