Пример #1
0
 public static bool insertPaymentToSupplier(APCEntities APCContext, SupplierInvoice supplierInvoice, decimal paymentAmount, DateTime paymentDate)
 {
     PaymentToSupplier paymentToSupplier = new PaymentToSupplier();
     paymentToSupplier.SupplierInvoice = supplierInvoice;
     paymentToSupplier.PaymentAmount = paymentAmount;
     paymentToSupplier.PaymentDate = paymentDate;
     APCContext.AddToPaymentToSupplier(paymentToSupplier);
     APCContext.SaveChanges();
     return true;
 }
Пример #2
0
        public static bool insertPaymentToSupplier(APCEntities APCContext, SupplierInvoice supplierInvoice, decimal paymentAmount, DateTime paymentDate)
        {
            PaymentToSupplier paymentToSupplier = new PaymentToSupplier();

            paymentToSupplier.SupplierInvoice = supplierInvoice;
            paymentToSupplier.PaymentAmount   = paymentAmount;
            paymentToSupplier.PaymentDate     = paymentDate;
            APCContext.AddToPaymentToSupplier(paymentToSupplier);
            APCContext.SaveChanges();
            return(true);
        }