public virtual void SaveProfile(UserProfile userProfile, EditProfile model) { var properties = new Dictionary <string, string> { [Constants.UserProfile.Fields.FirstName] = model.FirstName, [Constants.UserProfile.Fields.LastName] = model.LastName, [Constants.UserProfile.Fields.PhoneNumber] = model.PhoneNumber, [Constants.UserProfile.Fields.Interest] = model.Interest, [nameof(userProfile.Name)] = model.FirstName, [nameof(userProfile.FullName)] = $"{model.FirstName} {model.LastName}".Trim() }; _userProfileProvider.SetCustomProfile(userProfile, properties); _contactFacetsService.UpdateContactFacets(userProfile); _accountTrackerService.TrackEditProfile(userProfile); }