예제 #1
0
 public IEnumerable <OutreachCallChartViewModel> GetOutreachCallChart()
 {
     return(new List <OutreachCallChartViewModel>
     {
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date, DateTime.Now.Date.AddDays(1)), OutreachDate = DateTime.Now.Date.ToString("MMM dd")
         },
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date.AddDays(-1), DateTime.Now.Date), OutreachDate = DateTime.Now.AddDays(-1).ToString("MMM dd")
         },
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date.AddDays(-2), DateTime.Now.Date.AddDays(-1)), OutreachDate = DateTime.Now.AddDays(-2).ToString("MMM dd")
         },
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date.AddDays(-3), DateTime.Now.Date.AddDays(-2)), OutreachDate = DateTime.Now.AddDays(-3).ToString("MMM dd")
         },
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date.AddDays(-4), DateTime.Now.Date.AddDays(-3)), OutreachDate = DateTime.Now.AddDays(-4).ToString("MMM dd")
         },
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date.AddDays(-5), DateTime.Now.Date.AddDays(-4)), OutreachDate = DateTime.Now.AddDays(-5).ToString("MMM dd")
         },
         new OutreachCallChartViewModel {
             Calls = _callCenterCallRepository.GetOutreachCallQueueCallsForLastSevenDays(DateTime.Now.Date.AddDays(-6), DateTime.Now.Date.AddDays(-5)), OutreachDate = DateTime.Now.AddDays(-6).ToString("MMM dd")
         },
     });
 }