Guest User

Example response from MVC Controller

a guest
Sep 17th, 2014
944
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //example request for grouping to MVC Controller
  2. {
  3.     group: "OrderDescription-asc"
  4.     page: 1
  5.     pageSize: 10
  6.     skip: 0
  7.     take: 10
  8. }
  9.  
  10. //example response from the MVC Controller after the above request
  11. {
  12.     "Data": [{
  13.         "Key": "Order Food",
  14.         "HasSubgroups": false,
  15.         "Member": "OrderDescription",
  16.         "Items": [{
  17.             "OrderID": 1,
  18.             "OrderDate": "\/Date(1343779200000)\/",
  19.             "OrderDescription": "Order Food",
  20.             "EmployeeID": 1,
  21.             "OrderTotal": 70.20,
  22.             "IsCompleted": true
  23.         }, {
  24.             "OrderID": 4,
  25.             "OrderDate": "\/Date(1343952000000)\/",
  26.             "OrderDescription": "Order Food",
  27.             "EmployeeID": 4,
  28.             "OrderTotal": 29.99,
  29.             "IsCompleted": true
  30.         }, {
  31.             "OrderID": 7,
  32.             "OrderDate": "\/Date(1344124800000)\/",
  33.             "OrderDescription": "Order Food",
  34.             "EmployeeID": 4,
  35.             "OrderTotal": 39.75,
  36.             "IsCompleted": false
  37.         }, {
  38.             "OrderID": 8,
  39.             "OrderDate": "\/Date(1344211200000)\/",
  40.             "OrderDescription": "Order Food",
  41.             "EmployeeID": 7,
  42.             "OrderTotal": 23.50,
  43.             "IsCompleted": false
  44.         }],
  45.         "Aggregates": {},
  46.         "Subgroups": []
  47.     }, {
  48.         "Key": "Order Office Materials",
  49.         "HasSubgroups": false,
  50.         "Member": "OrderDescription",
  51.         "Items": [{
  52.             "OrderID": 2,
  53.             "OrderDate": "\/Date(1343779200000)\/",
  54.             "OrderDescription": "Order Office Materials",
  55.             "EmployeeID": 2,
  56.             "OrderTotal": 99.75,
  57.             "IsCompleted": true
  58.         }, {
  59.             "OrderID": 9,
  60.             "OrderDate": "\/Date(1344211200000)\/",
  61.             "OrderDescription": "Order Office Materials",
  62.             "EmployeeID": 1,
  63.             "OrderTotal": 27.70,
  64.             "IsCompleted": false
  65.         }],
  66.         "Aggregates": {},
  67.         "Subgroups": []
  68.     }, {
  69.         "Key": "Order Production Materials",
  70.         "HasSubgroups": false,
  71.         "Member": "OrderDescription",
  72.         "Items": [{
  73.             "OrderID": 3,
  74.             "OrderDate": "\/Date(1343865600000)\/",
  75.             "OrderDescription": "Order Production Materials",
  76.             "EmployeeID": 1,
  77.             "OrderTotal": 24500.00,
  78.             "IsCompleted": false
  79.         }, {
  80.             "OrderID": 5,
  81.             "OrderDate": "\/Date(1344038400000)\/",
  82.             "OrderDescription": "Order Production Materials",
  83.             "EmployeeID": 3,
  84.             "OrderTotal": 7000.00,
  85.             "IsCompleted": true
  86.         }, {
  87.             "OrderID": 6,
  88.             "OrderDate": "\/Date(1344124800000)\/",
  89.             "OrderDescription": "Order Production Materials",
  90.             "EmployeeID": 3,
  91.             "OrderTotal": 25000.00,
  92.             "IsCompleted": true
  93.         }, {
  94.             "OrderID": 10,
  95.             "OrderDate": "\/Date(1344297600000)\/",
  96.             "OrderDescription": "Order Production Materials",
  97.             "EmployeeID": 2,
  98.             "OrderTotal": 10740.77,
  99.             "IsCompleted": true
  100.         }],
  101.         "Aggregates": {},
  102.         "Subgroups": []
  103.     }],
  104.     "Total": 11,
  105.     "AggregateResults": null,
  106.     "Errors": null
  107. }
RAW Paste Data