Exemple #1
0
        public async Task <ResultListDto> GetBranchListAsync(BranchFilterDto branchFilterDto)
        {
            var branchFilter = _mapper.Map <BranchFilter>(branchFilterDto);
            var branchList   = await _branchService.GetBranchListAsync(branchFilter);

            var           branchDtoList = _mapper.Map <IEnumerable <BranchDto> >(branchList.Results);
            ResultListDto finalResult   = new ResultListDto()
            {
                MaxPageRows = branchList.MaxPageRows,
                TotalRows   = branchList.TotalRows,
                Results     = branchDtoList
            };

            return(finalResult);
        }