Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. {
  2. "_id" : ObjectId("53d143739ed51f272cd17a7f"),
  3. "TermId" : "28ff997e-cac3-4980-9f16-10516fb055e3",
  4. "Term" : "PricelessNight",
  5. "TotalCount" : 1,
  6. "date" : new Date("14/11/2013 00:00:00"),
  7. "socialCounts" : [{
  8. "Name" : "instagram",
  9. "Count" : 1
  10. }]
  11. }
  12.  
  13. ['day', 'Term1Count', 'Term2count'],
  14. ['28-07-2014', 1000, 400],
  15. ['27-07-2014', 1170, 460],
  16. ['26-07-2014', 660, 1120],
  17. ['25', 1030, 540]
  18.  
  19. public IQueryable<Collections.ReportingStats> GetGraphData(string[] terms, DateTime formDate, DateTime ToDate)
  20. {
  21. try
  22. {
  23. var entities = from e in this.collection.AsQueryable<Collections.ReportingStats>()
  24. where e.date >= formDate && e.date <= ToDate && terms.Contains(e.TermId)
  25. select e;
  26. return entities;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement