Skip to content

Commit

Permalink
Removing the data annotation validation from the class and moving to …
Browse files Browse the repository at this point in the history
…the dtos
  • Loading branch information
Edrisym committed Nov 26, 2024
1 parent 582f685 commit af8980e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions EWallet.Api/Common/Models/Currency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
4 changes: 0 additions & 4 deletions EWallet.Api/Common/Models/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit af8980e

Please sign in to comment.