public async Task GetReportsAsync()
        {
            var report       = new ReportUtilities();
            var catalogItems = await report.GetReportsAsync();

            Console.WriteLine(string.Join("\n", catalogItems.Select(i => i.Name).ToList()));
        }
Exemplo n.º 2
0
        public async Task <string> GetReportsAsync()
        {
            var report       = new ReportUtilities();
            var catalogItems = await report.GetReportsAsync();

            return(string.Join("\n", catalogItems.Select(i => i.Name).ToList()));
        }
Exemplo n.º 3
0
        static async Task Main(string[] args)
        {
            var report       = new ReportUtilities();
            var catalogItems = await report.GetReportsAsync();

            Console.WriteLine(string.Join("\n", catalogItems.Select(i => i.Name).ToList()));

            // Execute the vendor payslip report
            var param = new Dictionary <string, string>();

            param.Add("Vendors", "48365");
            param.Add("DocNums", "2018-1914-2");

            var path = await report.ExecuteReportAsync("/Betenbough/Production/Vendor Pay Slip by DocNum - Auto", param);

            Console.WriteLine(path);
        }