57d2ab60a7
Created and binded a View, created logic behind Cart Product Model
23 lines
471 B
C#
23 lines
471 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RMWPFInterfaceLibrary.Models
|
|
{
|
|
public class CartItemModel
|
|
{
|
|
public ProductModel Product { get; set; }
|
|
public int QuantityInCart { get; set; }
|
|
|
|
public string DisplayText
|
|
{
|
|
get
|
|
{
|
|
return $"{Product.ProductName} ({QuantityInCart})";
|
|
}
|
|
}
|
|
}
|
|
}
|