コード例 #1
0
        public void UpdatePayOrder(PayOrderDTO payOrder)
        {
            var pay = payOrderRepository.GetBy(payOrder.ID);

            payOrder.MappingPayOrder(pay);
            payOrderRepository.Update(pay);
        }
コード例 #2
0
 public static void MappingPayOrder(this PayOrderDTO payOrderDTO, PayOrder payOrder)
 {
     payOrder.ID          = payOrderDTO.ID;
     payOrder.UID         = payOrderDTO.UID;
     payOrder.Receiver    = payOrderDTO.Receiver;
     payOrder.Address     = payOrderDTO.Address;
     payOrder.Phone       = payOrderDTO.Phone;
     payOrder.Total       = payOrderDTO.Total;
     payOrder.DateOrder   = payOrderDTO.DateOrder;
     payOrder.Status      = payOrderDTO.Status;
     payOrder.StatusPay   = payOrderDTO.StatusPay;
     payOrder.Note        = payOrderDTO.Note;
     payOrder.DateConfirm = payOrderDTO.DateConfirm;
     payOrder.DateToShip  = payOrderDTO.DateToShip;
     payOrder.DateToPay   = payOrderDTO.DateToPay;
     payOrder.DateCancel  = payOrderDTO.DateCancel;
 }
コード例 #3
0
        public static PayOrderDTO MappingPayOrdertDto(this PayOrder payOrder)
        {
            var payOrderDTO = new PayOrderDTO
            {
                ID          = payOrder.ID,
                UID         = payOrder.UID,
                Receiver    = payOrder.Receiver,
                Address     = payOrder.Address,
                Phone       = payOrder.Phone,
                Total       = payOrder.Total,
                DateOrder   = payOrder.DateOrder,
                Status      = payOrder.Status,
                StatusPay   = payOrder.StatusPay,
                Note        = payOrder.Note,
                DateConfirm = payOrder.DateConfirm,
                DateToShip  = payOrder.DateToShip,
                DateToPay   = payOrder.DateToPay,
                DateCancel  = payOrder.DateCancel
            };

            return(payOrderDTO);
        }
コード例 #4
0
        public static PayOrder MappingPayOrder(this PayOrderDTO payOrderDTO)
        {
            var payOrder = new PayOrder
            {
                ID          = payOrderDTO.ID,
                UID         = payOrderDTO.UID,
                Receiver    = payOrderDTO.Receiver,
                Address     = payOrderDTO.Address,
                Phone       = payOrderDTO.Phone,
                Total       = payOrderDTO.Total,
                DateOrder   = payOrderDTO.DateOrder,
                Status      = payOrderDTO.Status,
                StatusPay   = payOrderDTO.StatusPay,
                Note        = payOrderDTO.Note,
                DateConfirm = payOrderDTO.DateConfirm,
                DateToShip  = payOrderDTO.DateToShip,
                DateToPay   = payOrderDTO.DateToPay,
                DateCancel  = payOrderDTO.DateCancel
            };

            return(payOrder);
        }
コード例 #5
0
        public void AddPayOrder(PayOrderDTO payOrder)
        {
            var pay = payOrder.MappingPayOrder();

            payOrderRepository.Add(pay);
        }