-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX🐛: Refactor Order and Product classes
- In Order.cs, added JSON serialization support and made some properties optional to avoid circular references during serialization. Specifically, removed the `required` keyword from `OrderItems` and `User` in the `Order` class and made the `Order` property in `OrderItem` optional with a `[JsonIgnore]` attribute. - In Product.cs, removed the static `IStringLocalizer` field and methods, indicating a shift in localization strategy. This could suggest a move towards handling localization at a different level or through another mechanism.
- Loading branch information
1 parent
fc68b99
commit 2885848
Showing
4 changed files
with
8 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters