diff --git a/EWallet.Api/Common/Models/Currency.cs b/EWallet.Api/Common/Models/Currency.cs index e719007..fc45791 100644 --- a/EWallet.Api/Common/Models/Currency.cs +++ b/EWallet.Api/Common/Models/Currency.cs @@ -7,18 +7,9 @@ private Currency() } public CurrencyId Id { get; private set; } - - [Required] - [StringLength(100)] public string Name { get; private set; } - - [Required] - [StringLength(10)] public string Code { get; private set; } - - [Required] public decimal Ratio { get; private set; } - public DateTime? ModifiedOnUtc { get; private set; } public DateTime CreatedOnUtc { get; private set; } diff --git a/EWallet.Api/Common/Models/Wallet.cs b/EWallet.Api/Common/Models/Wallet.cs index 9746a22..2c49f1f 100644 --- a/EWallet.Api/Common/Models/Wallet.cs +++ b/EWallet.Api/Common/Models/Wallet.cs @@ -8,12 +8,8 @@ private Wallet() private const decimal InitialBalance = 1.0m; public WalletId Id { get; private set; } - - [Required] public decimal Balance { get; private set; } public int StatusId { get; private set; } - - [Required] public CurrencyId CurrencyId { get; private set; } public Currency Currency { get; private set; }