Skip to content

Instantly share code, notes, and snippets.

@huseyinafsin
Last active June 4, 2023 06:24
Show Gist options
  • Save huseyinafsin/d2db845cc0469b8ffaa74564c2e0434f to your computer and use it in GitHub Desktop.
Save huseyinafsin/d2db845cc0469b8ffaa74564c2e0434f to your computer and use it in GitHub Desktop.
Gist for Redis implementation using dotnet core on Medium
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; }
}
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