public IEnumerable <PackageVM> Filter(PackageFilterVM filterVM) { var filterDTO = mapper.ConvertTo <PackageFilterDTO>(filterVM); var packagesEM = packageRepository.Filter(filterDTO); return(mapper.ConvertCollectionTo <PackageVM>(packagesEM)); }
public IActionResult GetAvailableForTicket([FromQuery] PackageFilterVM filterVM) { var packages = packageService.GetAvailableForTicket(filterVM); return(Ok(packages)); }
public IActionResult Filter([FromQuery] PackageFilterVM filterVM) { var packages = packageService.Filter(filterVM); return(Ok(packages)); }