Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. public void OnPost(InvoiceLine[] invoiceLines)
  2. {
  3.     // name di input:
  4.     // invoiceLines[0].Id
  5.     // invoiceLines[0].Product
  6.     // invoiceLines[1].Id
  7.     // invoiceLines[1].Product
  8.     // dst...
  9.  
  10.     Console.WriteLine("Hello world...");
  11.     Console.WriteLine($"Jumlah data: {invoiceLines.Length}");
  12.  
  13.     foreach (var row in invoiceLines)
  14.     {
  15.         Console.WriteLine($"Id: {row.Id}");
  16.         Console.WriteLine($"Product: {row.Product}");
  17.         Console.WriteLine();
  18.     }
  19.  
  20.     Console.ReadKey();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement