File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ using System . Collections . Generic ;
2
+
3
+ namespace AspnetRunBasics . Entities
4
+ {
5
+ public class Cart
6
+ {
7
+ public int Id { get ; set ; }
8
+ public string UserName { get ; set ; }
9
+ public List < CartItem > Items { get ; set ; } = new List < CartItem > ( ) ;
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ namespace AspnetRunBasics . Entities
2
+ {
3
+ public class CartItem
4
+ {
5
+ public int Id { get ; set ; }
6
+ public int Quantity { get ; set ; }
7
+ public string Color { get ; set ; }
8
+ public decimal Price { get ; set ; }
9
+ public int ProductId { get ; set ; }
10
+ public Product Product { get ; set ; }
11
+ }
12
+ }
Original file line number Diff line number Diff line change
1
+ namespace AspnetRunBasics . Entities
2
+ {
3
+ public class Order
4
+ {
5
+ public int Id { get ; set ; }
6
+ public string UserName { get ; set ; }
7
+ public decimal TotalPrice { get ; set ; }
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments