public object GetTotal()
        {
            var transactions = _getData.GetData();

            var dateSummary = new DateSummaryModel(
                "CashFlowAllTime"
                );

            foreach (var transaction in transactions)
            {
                if (transaction.PaidAt != null)
                {
                    dateSummary.Sum = dateSummary.Sum + transaction.Total;
                }
            }

            return(dateSummary);
        }
        public object GetTotal()
        {
            var transactions = _getData.GetData();

            var dateSummary = new DateSummaryModel(
                "RevenueAllTime"
                );

            foreach (var transaction in transactions)
            {
                if (transaction.Total > 0)
                {
                    dateSummary.Sum = dateSummary.Sum + transaction.Total;
                }
            }

            return(dateSummary);
        }