Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id" : ObjectId("53d143739ed51f272cd17a7f"),
- "TermId" : "28ff997e-cac3-4980-9f16-10516fb055e3",
- "Term" : "PricelessNight",
- "TotalCount" : 1,
- "date" : new Date("14/11/2013 00:00:00"),
- "socialCounts" : [{
- "Name" : "instagram",
- "Count" : 1
- }]
- }
- ['day', 'Term1Count', 'Term2count'],
- ['28-07-2014', 1000, 400],
- ['27-07-2014', 1170, 460],
- ['26-07-2014', 660, 1120],
- ['25', 1030, 540]
- public IQueryable<Collections.ReportingStats> GetGraphData(string[] terms, DateTime formDate, DateTime ToDate)
- {
- try
- {
- var entities = from e in this.collection.AsQueryable<Collections.ReportingStats>()
- where e.date >= formDate && e.date <= ToDate && terms.Contains(e.TermId)
- select e;
- return entities;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement