示例#1
0
        public BaseController()
        {
            _accountService = new IdentityAccountService();

            if (_accountService.CurrentUserName != null)
            {
                ViewBag.CurrentGuestName = _accountService.CurrentUserName;
            }
        }
示例#2
0
 public AccountController(IdentityAccountService accountService)
 {
     _accountService = accountService;
 }
示例#3
0
 public UserController(IdentityAccountService userService)
 {
     _userService = userService;
 }