source:
KernelRecordsMVC.Application/ViewModels/CartViewModel.cs@
08aefc6
| Last change on this file since 08aefc6 was 08aefc6, checked in by , 4 weeks ago | |
|---|---|
|
|
| File size: 219 bytes | |
| Rev | Line | |
|---|---|---|
| [08aefc6] | 1 | namespace KernelRecordsMVC.Application.ViewModels; |
| 2 | ||
| 3 | public class CartViewModel | |
| 4 | { | |
| 5 | public List<CartItemViewModel> Items { get; set; } | |
| 6 | = new(); | |
| 7 | ||
| 8 | public decimal Total => | |
| 9 | Items.Sum(x => x.Total); | |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
