示例#1
0
 //inside the contructor ,we will  need to pass the two classes as the parameter . This will help us to access the injected instance
 public ApplicationUserController(IOptions <ApplicationSetting> appSetting, AccountDetailContext context)
 {
     // _userManager = userManager;
     // _signInManager = signInManager;
     _appSetting = appSetting.Value;
     _context    = context;
 }
 public AccountDetailsController(AccountDetailContext context)
 {
     _context = context;
 }