From 57ce843107fbe37f471266cf604a232cff7b82e4 Mon Sep 17 00:00:00 2001 From: Eddie Date: Fri, 15 Nov 2024 21:11:49 +0330 Subject: [PATCH] . --- EWallet.Api/Common/Models/Wallet.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EWallet.Api/Common/Models/Wallet.cs b/EWallet.Api/Common/Models/Wallet.cs index ae47b40..86f1ff4 100644 --- a/EWallet.Api/Common/Models/Wallet.cs +++ b/EWallet.Api/Common/Models/Wallet.cs @@ -27,13 +27,15 @@ public static Wallet Create(decimal balance, Currency currency) InsufficientInitialBalanceException.Throw(balance); ArgumentNullException.ThrowIfNull(currency); - if (!IsValidRatio(currency)) InvalidCurrencyRatioException.Throw(currency.Ratio); + if (!IsValidRatio(currency)) + InvalidCurrencyRatioException.Throw(currency.Ratio); return new Wallet { Id = Guid.NewGuid(), Balance = balance, Currency = currency, + CurrencyId = currency.Id, Status = WalletStatus.UnderReview.ToString(), CreatedOnUtc = DateTime.UtcNow, };