Skip to content

Commit

Permalink
Adding DataAnnotations validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Edrisym committed Nov 26, 2024
1 parent cb7690d commit 582f685
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EWallet.Api/Common/Models/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ 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; }
public DateTime? ModifiedOnUtc { get; private set; }
public DateTime CreatedOnUtc { get; private set; }
Expand Down

0 comments on commit 582f685

Please sign in to comment.