示例#1
0
 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;
 }
示例#3
0
 public ProductController(IHostingEnvironment hostingEnvironment, IProductBAL ProductBAL)
 {
     _IProductBAL = ProductBAL;
     webRootPath  = hostingEnvironment.WebRootPath;
 }