Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. {
  2. "01:30":{
  3. "FREE":true,
  4. "PRICE":3500
  5. },
  6. "03:00":{
  7. "FREE":true,
  8. "PRICE":2500
  9. },
  10. "13:30":{
  11. "FREE":true,
  12. "PRICE":2500
  13. }
  14. }
  15.  
  16. public class ScheduleViewModel
  17. {
  18. public ScheduleInnerViewModel TIME { get; set; }
  19. }
  20.  
  21. public class ScheduleInnerViewModel
  22. {
  23. public bool FREE { get; set; }
  24. public int PRICE { get; set; }
  25. }
  26.  
  27. [
  28. {"TIME":{
  29. "FREE":true,
  30. "PRICE":3500
  31. }},
  32. {"TIME":{
  33. "FREE":true,
  34. "PRICE":2500
  35. }},
  36. {"TIME":{
  37. "FREE":true,
  38. "PRICE":2500
  39. }}
  40. ]
  41.  
  42. List<ScheduleViewModel> model = new List<ScheduleViewModel>();
  43. //fill the model...
  44. return this.Json(model, JsonRequestBehavior.AllowGet);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement