public async Task <IHttpActionResult> GetAll() { var result = await _repository.GetAll <Invoice>(); var response = new GetInvoicesResponse { Result = result }; return(Ok(response)); }
internal static async Task Execute(Client client) { DateTime startDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); GetInvoicesResponse result = await client.SalesInvoices.GetInvoicesAsync(startDate, null); foreach (GetInvoice invoice in result.Data) { Console.WriteLine($"Invoice ID: ", invoice.Identifier); } }