Looking to convert a DataTable into a 2-D array in C#. Here's an example for better understanding.
DataTable in C#:
code Price
---------- ----------
1146441600000 34
1146528000000 5
1146614400000 10
1146700800000 7
1146787200000 12
1147046400000 8
1147132800000 9
Desired Output in JavaScript:
[[1146441600000,34],
[1146528000000,5],
[1146614400000,10],
[1146700800000,7],
[1146787200000,12],
[1147046400000,8],
[1147132800000,9]]
Razor engine is being used for front-end rendering.