public void CopyFieldsFrom(Credit credit) { ClientId = credit.ClientId; Money = credit.Money; Procents = credit.Procents; Type = credit.Type; Period = credit.Period; }
public void TakeCredit(Credit credit) { credit.DateTime = DateTime.Now; credit.ClientId = CurrentClient.Id; }
public void PayCredit(int money, Credit credit) { CurrentClient.State.BankMoney -= money; credit.Money -= money; }