private void InitialiseEmployerProfile(Guid employerId) { var profile = _profilesQuery.GetEmployerProfile(employerId) ?? new EmployerProfile(); profile.UpdatedTermsReminder.Hide = true; _profilesCommand.UpdateEmployerProfile(employerId, profile); }
private void SetPropertyValues(Guid userId, IEnumerable collection) { foreach (SettingsPropertyValue property in collection) { switch (property.Name) { case EmployerProfile: var employerProfile = property.PropertyValue as EmployerProfile; if (employerProfile != null) { _profilesCommand.UpdateEmployerProfile(userId, employerProfile); } break; case MemberProfile: var memberProfile = property.PropertyValue as MemberProfile; if (memberProfile != null) { _profilesCommand.UpdateMemberProfile(userId, memberProfile); } break; } } }