Exemplo n.º 1
0
            public async Task <Response <IEnumerable <GetAllExpenseCategoriesResponse> > > Handle(GetAllExpenseCategoriesQuery request, CancellationToken cancellationToken)
            {
                var categoryList = await _categoryRepository.GetAllAsync();

                var categoryMappedList = _mapper.Map <IEnumerable <GetAllExpenseCategoriesResponse> >(categoryList);

                return(new Response <IEnumerable <GetAllExpenseCategoriesResponse> >(categoryMappedList));
            }