public ProductsController(IMapper mapper, IProductBAL userBAL) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _productBAL = userBAL ?? throw new ArgumentNullException(nameof(userBAL)); }
public CartController(IHostingEnvironment hostingEnvironment, ICartBAL CartBAL, IProductBAL ProductBAL) { _ICartBAL = CartBAL; _IProductBAL = ProductBAL; webRootPath = hostingEnvironment.WebRootPath; }
public ProductController(IHostingEnvironment hostingEnvironment, IProductBAL ProductBAL) { _IProductBAL = ProductBAL; webRootPath = hostingEnvironment.WebRootPath; }