예제 #1
0
        public async Task <IActionResult> GetBanks([FromQuery] BankListRequestModel model, DataMode mode = DataMode.Full)
        {
            var filters = Mapper.Map <BankListQueryModel>(model);

            var banks = await _bankService.GetItemsAsync(filters, mode);

            var totalCount = await _bankService.CountAsync(filters);

            return(await GetListViewModel(banks, model, totalCount));
        }