RootDataOfProductInOrder.cs 457 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Cashier
  7. {
  8. class RootDataOfProductInOrder
  9. {
  10. public RootDataOfProductInStore ProductInStore { get; set; }
  11. public int AmountProduct { get; set; }
  12. public decimal Cost {
  13. get
  14. {
  15. return ProductInStore.PriceOfOne * AmountProduct;
  16. }
  17. }
  18. }
  19. }