public OrderService(IBasketRepository basketRepo, StoreContext context, IPriceCalculatorService calc, IModelVolumeRepository modelVolumeRepository) { _context = context; _basketRepo = basketRepo; _unitOfWork = new UnitOfWork(_context); _priceCalculatorService = calc; _modelVolumeRepository = modelVolumeRepository; }
public CustomOrderController(IWebHostEnvironment webHostEnvironment, UserManager <AppUser> manager, IPriceCalculatorService priceCalculatorService, IModelVolumeRepository modelVolumeRepository) { _modelVolumeRepository = modelVolumeRepository; _priceCalculatorService = priceCalculatorService; _webHostEnvironment = webHostEnvironment; _userManager = manager; }