Esempio n. 1
0
 /// <summary>
 /// Retrieve list of InvoiceNote.
 /// no parameters required to be passed in.
 /// </summary>
 /// <returns>List of InvoiceNote</returns>
 public InvoiceNoteList GetAll()
 {
     using (InvoiceNoteDataAccess data = new InvoiceNoteDataAccess(ClientContext))
     {
         return(data.GetAll());
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Retrieve list of InvoiceNote.
        /// </summary>
        /// <param name="fillChild"></param>
        /// <returns>List of InvoiceNote</returns>
        public InvoiceNoteList GetAll(bool fillChild)
        {
            InvoiceNoteList invoiceNoteList = new InvoiceNoteList();

            using (InvoiceNoteDataAccess data = new InvoiceNoteDataAccess(ClientContext))
            {
                invoiceNoteList = data.GetAll();
            }
            if (fillChild)
            {
                foreach (InvoiceNote invoiceNoteObject in invoiceNoteList)
                {
                    FillInvoiceNoteWithChilds(invoiceNoteObject, fillChild);
                }
            }
            return(invoiceNoteList);
        }