PricingPackageDto IPricingPackageRepository.GetPricingPackage(int pricingPackageId) { PricingPackage t = _dbContext.PricingPackage.FirstOrDefault(x => x.PricingPackageId == pricingPackageId); return(t != null?PricingPackageRepository.MapToDto(t) : null); }
IEnumerable <PricingPackageDto> IPricingPackageRepository.GetAllPricingPackages() { return(_dbContext.PricingPackage.OrderByDescending(x => x.Price).Select(x => PricingPackageRepository.MapToDto(x))); }
IEnumerable <PricingPackageDto> IPricingPackageRepository.GetAllPricingPackages() { return(_dbContext.PricingPackage.ToList().Select(x => PricingPackageRepository.MapToDto(x))); }