Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IOrderSerivce orderSerivce)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _orderSerivce  = orderSerivce;
 }
Ejemplo n.º 3
0
 public CartController(IProductService productService, IOrderSerivce orderSerivce)
 {
     _productService = productService;
     _orderSerivce   = orderSerivce;
 }
Ejemplo n.º 4
0
 public OrderController(IOrderSerivce orderSerivce)
 {
     _orderSerivce = orderSerivce;
 }
Ejemplo n.º 5
0
 public IActionResult MyOptionTest2([FromServices] IOrderSerivce service)
 {
     Console.WriteLine("this.service 的 GetMaxCount :" + service.GetMaxCount().ToString());
     return(Content("MyOptionTest"));
 }