public CartRES CartDTtoRES() { CartRES cartRES = new CartRES() { Id = Id, AddToCartDate = AddToCartDate, Quantity = Quantity, ProductAmountType = ProductAmountType.ProductAmountTypeDTtoRES2() }; return(cartRES); }
public OrderDetailRES OrderDetailDTtoRES() { OrderDetailRES orderDetailRES = new OrderDetailRES() { Id = Id, OrderStatus = OrderStatus, Quantity = Quantity, ProductAmountType = ProductAmountType.ProductAmountTypeDTtoRES2(), TotalPrice = TotalPrice }; return(orderDetailRES); }