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; }
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); }