public CartService(IProductRepository product, IPromocodeRepository promocode, IShoppingCartRepository cart, IProductShoppingCartRepository productCart) { productRepository = product; promocodeRepository = promocode; cartRepository = cart; productCartRepository = productCart; }
public PromotionController(IEventService _EventService, ITheatreService _TheatreService, IPromotionService _PromotionService, IPromocodeRepository _PromocodeRepository) { EventService = _EventService; TheatreService = _TheatreService; PromotionService = _PromotionService; PromocodeRepository = _PromocodeRepository; }
public PromocodeController(DataContext context, UserManager <AppUser> userManager, IOptions <CloudinarySettings> cloudinaryConfig, IMapper mapper, IPromocodeRepository repo) { _context = context; _userManager = userManager; _cloudinaryConfig = cloudinaryConfig; _mapper = mapper; _repo = repo; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public PromocodeController(IPromocodeRepository repo) { _repo = repo; }
public ProductService(IProductRepository product, IImageRepository image, IPromocodeRepository promocode) { productRepository = product; imageRepository = image; promocodeRepository = promocode; }