Beispiel #1
0
        public IActionResult GetAll([FromQuery] PackageGetListVM getListVM)
        {
            var packages = packageService.GetList(getListVM, out int total);

            return(PagingResponse(packages, total));
        }
Beispiel #2
0
        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));
        }