Example #1
0
 public OrderController(IAccountService accountService, IMomoService momoService, IOrderService orderService, IOrderDetailService orderDetailService,
                        IPaypalService paypalService, IEmailSender emailSender)
 {
     _accountService     = accountService;
     _momoService        = momoService;
     _orderService       = orderService;
     _orderDetailService = orderDetailService;
     _paypalService      = paypalService;
     _emailSender        = emailSender;
 }
Example #2
0
 public AccountController(UserManager <User> userManager, SignInManager <User> signInManager, ShopContext context, ILogger <AccountController> logger,
                          IEmailSender emailSender, IAccountService accountService, IMomoService momoService)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _context        = context;
     _logger         = logger;
     _emailSender    = emailSender;
     _accountService = accountService;
     _momoService    = momoService;
 }