Esempio n. 1
0
 public static void Mapto2(this order_tbl ord, OrderTableDTO ord1)
 {
     ord.id              = ord1.id;
     ord.createDate      = ord1.createDate;
     ord.updateDate      = ord1.updateDate;
     ord.paymentMethod   = ord1.paymentMethod;
     ord.shippingFee     = ord1.shippingFee;
     ord.shippingAddress = ord1.shippingAddress;
     ord.totalPrice      = ord1.totalPrice;
     ord.status          = ord1.status;
     ord.customerId      = ord1.customerId;
 }
Esempio n. 2
0
 public static order_tbl toOrder(this OrderTableDTO ord1)
 {
     return(new order_tbl()
     {
         id = ord1.id,
         createDate = ord1.createDate,
         updateDate = ord1.updateDate,
         paymentMethod = ord1.paymentMethod,
         shippingFee = ord1.shippingFee,
         shippingAddress = ord1.shippingAddress,
         totalPrice = ord1.totalPrice,
         status = ord1.status,
         customerId = ord1.customerId
     });
 }