main
|
Last change
on this file since 08aefc6 was 08aefc6, checked in by mmilevski <markomilevski3@…>, 4 weeks ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
446 bytes
|
| Line | |
|---|
| 1 | namespace KernelRecordsMVC.Application.ViewModels;
|
|---|
| 2 |
|
|---|
| 3 | public class CartItemViewModel
|
|---|
| 4 | {
|
|---|
| 5 | public long ProductId { get; set; }
|
|---|
| 6 |
|
|---|
| 7 | public long ReleaseId { get; set; }
|
|---|
| 8 |
|
|---|
| 9 | public string ReleaseTitle { get; set; } = null!;
|
|---|
| 10 |
|
|---|
| 11 | public string Format { get; set; } = null!;
|
|---|
| 12 |
|
|---|
| 13 | public decimal Price { get; set; }
|
|---|
| 14 |
|
|---|
| 15 | public long Quantity { get; set; }
|
|---|
| 16 |
|
|---|
| 17 | public long Stock { get; set; }
|
|---|
| 18 |
|
|---|
| 19 | public decimal Total =>
|
|---|
| 20 | Price * Quantity;
|
|---|
| 21 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.