public OrderController(
     IBillingAddressService billingAddressService,
     IOrderService orderService,
     IMapper mapper)
 {
     _billingAddressService = billingAddressService;
     _orderService          = orderService;
     _mapper = mapper;
 }
Пример #2
0
 public CartController(
     UserManager <ApplicationUser> userManager,
     IProductService productService,
     IBillingAddressService billingAddressService,
     IOrderService orderService,
     IHttpContextAccessor httpContextAccessor,
     IMapper mapper)
 {
     _userManager           = userManager;
     _productService        = productService;
     _billingAddressService = billingAddressService;
     _orderService          = orderService;
     _mapper = mapper;
     _httpContextAccessor = httpContextAccessor;
 }
Пример #3
0
 public ManageController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IBillingAddressService billingAddressService,
     IHttpContextAccessor httpContextAccessor,
     IOrderService orderService,
     ILoggerFactory loggerFactory,
     IMapper mapper)
 {
     _userManager           = userManager;
     _signInManager         = signInManager;
     _billingAddressService = billingAddressService;
     _httpContextAccessor   = httpContextAccessor;
     _orderService          = orderService;
     _logger = loggerFactory.CreateLogger <ManageController>();
     _mapper = mapper;
 }