/// <summary>
 ///     Selects payments from the given time frame and calculates the income, the spendings and the revenue.
 ///     There is no differentiation between the accounts, therefore transfers are ignored.
 /// </summary>
 /// <param name="startDate">Start point form which to select data.</param>
 /// <param name="endDate">Endpoint form which to select data.</param>
 /// <returns>Statistic value for the given time frame</returns>
 public async Task <List <StatisticEntry> > GetCashFlow(DateTime startDate, DateTime endDate)
 {
     return(GetCashFlowStatisticItems(await statisticDbAccess.GetPaymentsWithoutTransfer(startDate, endDate)
                                      .ConfigureAwait(false)));
 }
 /// <summary>
 ///     Selects payments from the given time frame and calculates the spreading for the six categories
 ///     with the highest spending. All others are summarized in a "other" item.
 /// </summary>
 /// <param name="startDate">Start point form which to select data.</param>
 /// <param name="endDate">Endpoint form which to select data.</param>
 /// <returns>Statistic value for the given time. </returns>
 public async Task <IEnumerable <StatisticEntry> > GetValues(DateTime startDate, DateTime endDate)
 {
     return(AggregateData(SelectRelevantDataFromList(await statisticDbAccess.GetPaymentsWithoutTransfer(startDate, endDate)
                                                     )));
 }