示例#1
0
        public bool Insert_Invoice(InvoiceEntity invoice)
        {
            if (dbContext == null)
            {
                dbContext = new FoodDeliveryEntities();
            }
            bool isInsert = false;
            int  insert   = dbContext.INSERT_INVOICE_TOSQL(invoice.OrderDate, invoice.DeliveryDate, invoice.Sale, invoice.ServiceChange, invoice.ShippingFee, invoice.TotalPrice, invoice.Status, invoice.CustomerName, invoice.CustomerPhone, invoice.AddressDelivery, invoice.CustomerID, invoice.StoreID);

            if (insert > 0)
            {
                isInsert = true;
            }
            return(isInsert);
        }