public CartController(IHostingEnvironment hostingEnvironment, ICartBAL CartBAL, IProductBAL ProductBAL) { _ICartBAL = CartBAL; _IProductBAL = ProductBAL; webRootPath = hostingEnvironment.WebRootPath; }
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)); }