Exemple #1
0
        public void UpdatePartners(Guid customerId, string name, string phone, string idNo)
        {
            if (Status != LoanStatus.Request || Partners.Any() == false)
            {
                return;
            }

            foreach (var partner in _partners)
            {
                if (partner.CustomerId == customerId)
                {
                    partner.SetName(name);
                    partner.SetPhone(phone);
                    partner.SetIdNo(idNo);
                }
            }
        }