Exemplo n.º 1
0
        public async Task <IReadOnlyList <TransactionReport> > GetLimitedAsync(
            DateTime from, DateTime to, int limit)
        {
            if (limit <= 0)
            {
                throw new ArgumentException();
            }

            var reports = await _transactionReportRepository.GetLimitedAsync(from, to, limit);

            return(reports);
        }
Exemplo n.º 2
0
        public async Task <IReadOnlyList <TransactionReport> > GetLimitedAsync(
            DateTime from, DateTime to, int limit, string[] partnerIds, Guid?campaignId,
            string transactionType = null, string status = null)
        {
            if (limit <= 0)
            {
                throw new ArgumentException();
            }

            var reports = await _transactionReportRepository.GetLimitedAsync(from, to, limit, partnerIds,
                                                                             transactionType, status, campaignId);

            return(reports);
        }