Infrastructure.OrderRepository.CreateOrderPayment C# (CSharp) Method

CreateOrderPayment() public method

public CreateOrderPayment ( int OrderId, Decimal AmountPaid, string CreditCardNumber, System.DateTime ExpirationDate, string ApprovalCode ) : void
OrderId int
AmountPaid Decimal
CreditCardNumber string
ExpirationDate System.DateTime
ApprovalCode string
return void
        public void CreateOrderPayment(int OrderId, Decimal AmountPaid, string CreditCardNumber, DateTime ExpirationDate, string ApprovalCode)
        {
            var orderPayment = new OrderPayment()
                                   {
                                       AmountPaid = AmountPaid,
                                       CreditCardNumber = CreditCardNumber,
                                       ApprovalCode = ApprovalCode,
                                       ExpirationDate = ExpirationDate,
                                       OrderId = OrderId,
                                       PaymentDate = DateTime.Now
                                   };
            _context.OrderPayments.Add(orderPayment);
            _context.SaveChanges();
        }
        public ICollection<Order> GetAllOrdersByCustomerId(string CustomerId)