public void Update(AdminMember member) { // update all values this.AccountStatus = member.AccountStatus; this.Email = member.Email.Scrub(); this.FirstName = member.FirstName.Scrub(); this.LastName = member.LastName.Scrub(); this.IsNotifiedOnConsumerRegistrations = member.IsNotifiedOnConsumerRegistrations; this.IsNotifiedOnProviderRegistrations = member.IsNotifiedOnProviderRegistrations; this.IsNotifiedOnAcceptedResponses = member.IsNotifiedOnAcceptedResponses; this.IsNotifiedOnExceptions = member.IsNotifiedOnExceptions; }
public bool HasChanged(AdminMember member) { if (this.AccountStatus != member.AccountStatus || this.Email != member.Email.Scrub() || this.FirstName != member.FirstName.Scrub() || this.LastName != member.LastName.Scrub() || this.IsNotifiedOnConsumerRegistrations != member.IsNotifiedOnConsumerRegistrations || this.IsNotifiedOnProviderRegistrations != member.IsNotifiedOnProviderRegistrations || this.IsNotifiedOnAcceptedResponses != member.IsNotifiedOnAcceptedResponses || this.IsNotifiedOnExceptions != member.IsNotifiedOnExceptions) { return(true); } return(false); }
public AdministratorRegistrationForm() { Member = new AdminMember(); }