Last active
June 4, 2023 06:24
-
-
Save huseyinafsin/d2db845cc0469b8ffaa74564c2e0434f to your computer and use it in GitHub Desktop.
Gist for Redis implementation using dotnet core on Medium
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
public class Basket | |
{ | |
public string Id { get; set; } = Guid.NewGuid().ToString(); | |
public string CustomerId { get; set; } | |
public double TotalAmount { get; set; } | |
public List<BasketItem> Items { get; set; } | |
} |
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
public class BasketItem | |
{ | |
public string Id { get; set; } = Guid.NewGuid().ToString(); | |
public string Name { get; set; } | |
public double Price { get; set; } | |
public int Quantity { get; set; } | |
public double Amount { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment