private async Task <List <DailyStats> > GetClickStatsAsync(DateTime fromDate, DateTime toDate, Expression <Func <Data.Entity.Models.Email, bool> > condition) { var result = new List <DailyStats>(); for (var date = fromDate; date <= toDate; date = date.AddDays(1)) { result.Add(new DailyStats(date, await _emailRecipientService.GetClickCountAsync(date, condition))); } return(result); }
public async Task <List <DailyStats> > GetClickStatsAsync(DateTime fromDate, DateTime toDate) { var result = new List <DailyStats>(); for (var date = fromDate; date <= toDate; date = date.AddDays(1)) { result.Add(new DailyStats(date, await _emailRecipientService.GetClickCountAsync(date, item => item.MemoId != null))); } return(result); }