demo_trade/UI/Presenters/OrderProductPresenter.cs
2024-10-04 15:41:04 +03:00

28 lines
966 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace demo_trade.UI.Presenters
{
public class OrderProductPresenter: ProductPresenter
{
public int ProductCount { get; set; }
public OrderProductPresenter(ProductPresenter productPresenter, int count) {
this.ArticleNumber = productPresenter.ArticleNumber;
this.ProductCount = count;
this.ProductMaxDiscount = productPresenter.ProductMaxDiscount;
this.QuantityInStock = productPresenter.QuantityInStock;
this.Manufacturer = productPresenter.Manufacturer;
this.Description = productPresenter.Description;
this.Name = productPresenter.Name;
this.Cost = productPresenter.Cost;
this.DiscountAmount = productPresenter.DiscountAmount;
this.Image = productPresenter.Image;
}
}
}