コード例 #1
0
 public CartController(IHostingEnvironment hostingEnvironment, ICartBAL CartBAL, IProductBAL ProductBAL)
 {
     _ICartBAL    = CartBAL;
     _IProductBAL = ProductBAL;
     webRootPath  = hostingEnvironment.WebRootPath;
 }
コード例 #2
0
 public CartController(IMapper mapper, ICartBAL cartBAL, IHttpClientFactory clientFactory)
 {
     _clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory));
     _mapper        = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _cartBAL       = cartBAL ?? throw new ArgumentNullException(nameof(cartBAL));
 }