Exemple #1
0
        PricingPackageDto IPricingPackageRepository.GetPricingPackage(int pricingPackageId)
        {
            PricingPackage t = _dbContext.PricingPackage.FirstOrDefault(x => x.PricingPackageId == pricingPackageId);

            return(t != null?PricingPackageRepository.MapToDto(t) : null);
        }
Exemple #2
0
 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)));
 }