コード例 #1
0
ファイル: OrderService.cs プロジェクト: tekilla667/Wydruki3D
 public OrderService(IBasketRepository basketRepo, StoreContext context, IPriceCalculatorService calc, IModelVolumeRepository modelVolumeRepository)
 {
     _context                = context;
     _basketRepo             = basketRepo;
     _unitOfWork             = new UnitOfWork(_context);
     _priceCalculatorService = calc;
     _modelVolumeRepository  = modelVolumeRepository;
 }
コード例 #2
0
 public CustomOrderController(IWebHostEnvironment webHostEnvironment, UserManager <AppUser> manager,
                              IPriceCalculatorService priceCalculatorService, IModelVolumeRepository modelVolumeRepository)
 {
     _modelVolumeRepository  = modelVolumeRepository;
     _priceCalculatorService = priceCalculatorService;
     _webHostEnvironment     = webHostEnvironment;
     _userManager            = manager;
 }