public async Task <Pager <SectionListViewModel> > GetSections([FromQuery] PagerFilterViewModel model) { var result = await _sectionBusinessManager.GetSectionPage(_mapper.Map <PagerFilter>(model)); var pager = new Pager <SectionListViewModel>(_mapper.Map <List <SectionListViewModel> >(result.Data), result.RecordsTotal, result.Start, result.PageSize); return(pager); }
public async Task <Pager <CustomerTagViewModel> > GetCustomerTags([FromQuery] PagerFilterViewModel model) { var result = await _businessManager.GetCustomerTags(_mapper.Map <PagerFilterDto>(model)); var pager = new Pager <CustomerTagViewModel>(_mapper.Map <List <CustomerTagViewModel> >(result.Items), result.TotalItems, result.CurrentPage, result.PageSize); return(pager); }
public async Task <Pager <VendorListViewModel> > GetVendors([FromQuery] PagerFilterViewModel model) { var result = await _vendorBusinessManager.GetVendorPager(_mapper.Map <PagerFilter>(model)); var pager = new Pager <VendorListViewModel>(_mapper.Map <List <VendorListViewModel> >(result.Data), result.RecordsTotal, result.Start, result.PageSize); return(pager); }
public async Task <Pager <SettingsRestrictedWordViewModel> > GetSettingsRestrictedWords([FromQuery] PagerFilterViewModel model) { var result = await _settingsBusinessService.GetRestrictedWordPage(_mapper.Map <PagerFilterDto>(model)); var pager = new Pager <SettingsRestrictedWordViewModel>(_mapper.Map <List <SettingsRestrictedWordViewModel> >(result.Items), result.TotalItems, result.CurrentPage, result.PageSize); return(pager); }
public async Task <Pager <InvoiceConstructorSearchViewModel> > GetReportSearchCriteria([FromQuery] PagerFilterViewModel model) { var result = await _businessManager.GetInvoiceConstructorSearchCriterias(_mapper.Map <PagerFilterDto>(model)); var pager = new Pager <InvoiceConstructorSearchViewModel>(_mapper.Map <List <InvoiceConstructorSearchViewModel> >(result.Items), result.TotalItems, result.CurrentPage, result.PageSize); pager.Filter = result.Filter; return(pager); }