public async Task Create(Profile profile) { if (profile == null) { return; } await _storage.Create(profile); }
public async Task Create(Profile profile) { // Toggle profile on QuickConnectViewModel is not checking for profile name duplicates. // Ensure new profile name shown to the user is initially adjusted for uniqueness. var p = _syncProfile.WithUniqueName(profile); await _profiles.Create(p); Sync(); }
private async Task <Profile> CreatedInApi(Profile profile) { if (profile == null) { return(null); } try { await _apiProfiles.Create(profile); _cancellationToken.ThrowIfCancellationRequested(); } catch (ProfileException ex) { await HandleException(ex, profile); return(null); } return(profile); }
public Task AddProfile(Profile profile) { AddCountryCode(profile); return(_profiles.Create(profile)); }