public async Task Update(Profile profile) { if (profile == null) { return; } await _storage.Update(profile); }
private async Task <Profile> UpdatedInApi(Profile profile) { if (profile == null) { return(null); } try { await _apiProfiles.Update(profile); _cancellationToken.ThrowIfCancellationRequested(); } catch (ProfileException ex) { await HandleException(ex, profile); return(profile); } return(profile); }
public Task UpdateProfile(Profile profile) { AddCountryCode(profile); return(_profiles.Update(profile)); }
public async Task Update(Profile profile) { await _profiles.Update(profile); Sync(); }