public PromotionRowModel ( Kooboo.Commerce.Promotions.Promotion promotion ) : System | ||
promotion | Kooboo.Commerce.Promotions.Promotion | |
return | System |
public PromotionRowModel(Promotion promotion)
{
Id = promotion.Id;
Name = promotion.Name;
IsEnabled = promotion.IsEnabled;
Priority = promotion.Priority;
if (promotion.RequireCouponCode)
{
CouponCode = promotion.CouponCode;
}
else
{
CouponCode = "-";
}
}
PromotionRowModel::PromotionRowModel ( ) : System |