public bool Insert_List_Detail_Invoice(List <InvoiceDetailEntity> list)
        {
            if (dbContext == null)
            {
                dbContext = new FoodDeliveryEntities();
            }
            bool isInsert = false;

            for (int i = 0; i < list.Count; i++)
            {
                int insert = dbContext.INSERT_INVOICEDETAIL_TOSQL(list[i].FoodID, list[i].NumberFood, list[i].Size, (long)list[i].PriceSize, list[i].Type, (long)list[i].PriceType, list[i].InvoiceID);
                if (insert > 0)
                {
                    isInsert = true;
                }
                else
                {
                    return(false);
                }
            }

            return(isInsert);
        }