Пример #1
0
        public CartRES CartDTtoRES()
        {
            CartRES cartRES = new CartRES()
            {
                Id                = Id,
                AddToCartDate     = AddToCartDate,
                Quantity          = Quantity,
                ProductAmountType = ProductAmountType.ProductAmountTypeDTtoRES2()
            };

            return(cartRES);
        }
Пример #2
0
        public OrderDetailRES OrderDetailDTtoRES()
        {
            OrderDetailRES orderDetailRES = new OrderDetailRES()
            {
                Id                = Id,
                OrderStatus       = OrderStatus,
                Quantity          = Quantity,
                ProductAmountType = ProductAmountType.ProductAmountTypeDTtoRES2(),
                TotalPrice        = TotalPrice
            };

            return(orderDetailRES);
        }