public IEnumerable<DataItem> Get(int limit, DateTime? startDate = null, DateTime? endDate = null)
 {
     var statistics = new Statistics();
     return statistics.GetHighscores(limit, startDate, endDate);
 }
 public void Post(DataItem dataItem)
 {
     var statistics = new Statistics();
     statistics.IncreaseValue(dataItem.Name);
 }
 public void Post(DataItem dataItem)
 {
     var statistics = new Statistics();
     statistics.SaveHighscore(dataItem.Name, dataItem.Value);
 }
 public IEnumerable<DataItem> Get()
 {
     var statistics = new Statistics();
     return statistics.GetStatistics();
 }
 public object Get(int limit, int score)
 {
     var statistics = new Statistics();
     return new { isHighscore = statistics.IsHighscore(score, limit, DateTime.Today.Day) };
 }