public PurchaseService(IProductRepository productRepository, IPointsPromotionRepository pointsPromotionRepository, IDiscountPromotionRepository discountPromotionRepository, IDiscountPromotionProductRepository discountPromotionProductRepository) { ProductRepository = productRepository; PointsPromotionRepository = pointsPromotionRepository; DiscountPromotionRepository = discountPromotionRepository; DiscountPromotionProductRepository = discountPromotionProductRepository; // Again, in the real-world, structured logging should be used throughout the code base, e.g. inject ILogger<PurchaseService> here. }
public DiscountPromotionService(IRepositoryContext context , IDiscountPromotionRepository hotelPromotionRepository , IHotelRepository hotelRepository , ICustomerRoleRepository customerRoleRepository , IHotelRoomCategoryRepository hotelRoomCategoryRepository , IHotelPromotionCustomerRoleService hotelPromotionCustomerRoleService , IHotelPromotionRoomCategoryService hotelPromotionRoomCategoryService) : base(context , hotelPromotionRepository , hotelRepository , customerRoleRepository , hotelRoomCategoryRepository , hotelPromotionCustomerRoleService , hotelPromotionRoomCategoryService) { }