/// <summary> /// Returns true if AccountOverviewViewModel instances are equal /// </summary> /// <param name="other">Instance of AccountOverviewViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountOverviewViewModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BankId == other.BankId || BankId != null && BankId.Equals(other.BankId) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) )); }
/// <summary> /// Returns true if CreateUserViewModel instances are equal /// </summary> /// <param name="other">Instance of CreateUserViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(CreateUserViewModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Username == other.Username || Username != null && Username.Equals(other.Username) ) && ( BankId == other.BankId || BankId != null && BankId.Equals(other.BankId) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) )); }
/// <summary> /// Returns true if AccountDetailsViewModel instances are equal /// </summary> /// <param name="other">Instance of AccountDetailsViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountDetailsViewModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BankId == other.BankId || BankId != null && BankId.Equals(other.BankId) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) ) && ( SortCode == other.SortCode || SortCode != null && SortCode.Equals(other.SortCode) ) && ( AccountName == other.AccountName || AccountName != null && AccountName.Equals(other.AccountName) ) && ( CurrentBalance == other.CurrentBalance || CurrentBalance != null && CurrentBalance.Equals(other.CurrentBalance) ) && ( OverdraftLimit == other.OverdraftLimit || OverdraftLimit != null && OverdraftLimit.Equals(other.OverdraftLimit) )); }