public IActionResult GetAll([FromQuery] PackageGetListVM getListVM) { var packages = packageService.GetList(getListVM, out int total); return(PagingResponse(packages, total)); }
public IEnumerable <PackageVM> GetList(PackageGetListVM getListVM, out int totalCount) { var packagesEM = packageRepository.GetList(getListVM.OnlyOpened, getListVM.OnlySpecial, getListVM, out totalCount); return(mapper.ConvertCollectionTo <PackageVM>(packagesEM)); }