public ProductController(ICategoryService categoryService, ICollectionService collectionService, IProductService productService, IMaterialService materialService, IColorService colorService, IManufacturerService manufacturerService, IOrderSerivce orderSerivce) { _categoryService = categoryService; _collectionService = collectionService; _productService = productService; _materialService = materialService; _colorService = colorService; _manufacturerService = manufacturerService; _orderSerivce = orderSerivce; }
public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IOrderSerivce orderSerivce) { _userManager = userManager; _signInManager = signInManager; _orderSerivce = orderSerivce; }
public CartController(IProductService productService, IOrderSerivce orderSerivce) { _productService = productService; _orderSerivce = orderSerivce; }
public OrderController(IOrderSerivce orderSerivce) { _orderSerivce = orderSerivce; }
public IActionResult MyOptionTest2([FromServices] IOrderSerivce service) { Console.WriteLine("this.service 的 GetMaxCount :" + service.GetMaxCount().ToString()); return(Content("MyOptionTest")); }