Beispiel #1
0
        public async Task <Response <IReadOnlyList <StatementResponse> > > GetList(GetStatementListRequest request)
        {
            var query = _mapper.Map <GetStatementListQuery>(request);

            var result = await _statementRepository.GetListAsync(query);

            var data = _mapper.Map <IReadOnlyList <Expenses.Domain.Models.Statement>, IReadOnlyList <StatementResponse> >(result.ToList());

            return(SuccessfulResponse(data));
        }