[ActivatorUtilitiesConstructor] // Marks this contructor as the primary one for DI.
 public WalletController(ApplicationDbContext context, INotyfService notyf, UserManager <ApplicationUser> userManager, IFlipChain flipChain)
 {
     _context     = context;
     _notyf       = notyf;
     _userManager = userManager;
     _flipChain   = flipChain;
 }
Example #2
0
 public HomeController(ILogger <HomeController> logger, ApplicationDbContext context, IFlipChain flipChain)
 {
     _logger    = logger;
     _context   = context;
     _flipChain = flipChain;
 }