public AuthorizationController(
            SignInManager <AppUser> signInManager, UserManager <AppUser> userManager,//TenantAppService tenantAppService
            IOptions <IdentityOptions> identityOptions,
            ISessionAppService sessionAppService)
        {
            _identityOptions = identityOptions;

            _signInManager = signInManager;
            _userManager   = userManager;

            _currentTenant = sessionAppService.GetCurrentTenant();

            //if(_currentTenant == null)
            //    _currentTenant = HttpContext.GetTenant<Tenant>();//If SaasKit.MultiTenancy configured
        }
        //private readonly IUserActivityLogAppService _userActivityService;
        //private readonly ILogger _logger;

        public InviteController(
            ISessionAppService sessionAppService
            //,ICandidateAppService candidateAppService,
            //IUserActivityLogAppService userActivityService,ILogger<InviteController> logger
            )
        {
            _sessionAppService = sessionAppService;                   //base.SessionAppService;

            _currentTenant   = _sessionAppService.GetCurrentTenant(); //NOTE: invitation must be from specific tenant
            _currentUserName = _sessionAppService.GetUserName();

            //_candidateAppService = candidateAppService; //To manage candidate activity: job offers, documents
            //_userActivityService = userActivityService; //to save user\cadidate activity : offer accepted\ rejected, etc

            //_logger = logger; - LogService from AbstractController
        }
        //[Route("Current")]
        //ProducesResponseType(typeof(Tenant), StatusCodes.Status200OK)]
        // [ProducesResponseType(StatusCodes.Status404NotFound)]
        //public Tenant GetCurrentTenant()
        //{
        //    var tenant = _sessionAppService.GetCurrentTenant();
        //    return tenant;
        //}

        public IActionResult GetCurrentTenant()
        {
            var tenant = _sessionAppService.GetCurrentTenant();

            return(Ok(tenant));
        }
        //[Produces("application/json")]
        //[ProducesResponseType(200, Type = typeof(TenantModel))]
        public IActionResult GetCurrentTenant()
        {
            var tenant = _session.GetCurrentTenant(); //_accountManager.CurrentTenantName;

            return(Ok(tenant));
        }