public UserDto GetLoggedUser()
        {
            string  token = _httpContextAccessor.HttpContext.Session.GetString("token");
            UserDto user  = JwtAuthorizeHelper.GetCurrentUser(token);

            return(user);
        }
        public IActionResult Login()
        {
            string  token = HttpContext.Session.GetString("token");
            UserDto user  = JwtAuthorizeHelper.GetCurrentUser(token);

            if (user == null)
            {
                return(View());
            }
            else
            {
                return(RedirectToAction("Index", "Home"));
            }
        }