public DoctorController(UserManager <IdentityUser> userManager)
        {
            sh = new StorieHandler();
            this.UserManager = userManager;

            httpcon = new HttpContextAccessor();
            session = new Session(httpcon);
            Access access = new Access(Guid.NewGuid().ToString());

            if (string.IsNullOrEmpty(session.AccessGuid))
            {
                session.AccessGuid = access.e.Guid;
            }
        }
        public IActionResult Index()
        {
            try
            {
                session.Access.Queue();

                string ip        = HttpContext.Features.Get <IHttpConnectionFeature>()?.RemoteIpAddress?.ToString();
                Stats  stats_res = stats.GetStatistics(ip);

                string msg;
                if (ip == Settings.Basic.IP() || Check.Generel.IsAdmin(ip))
                {
                    msg = "Der har været en besøgende! - Admin[" + stats_res.users_per_day + "]";
                }
                else
                {
                    msg = "Der har været en besøgende! - Other[" + stats_res.users_per_day + "]";
                }

                string subject = msg;
                string body    = "IP: " + stats_res.ip + "<br />";
                Admin.Notification.Run(Settings.Basic.EMAIL_MAIL(), Settings.Basic.EMAIL_MAIL(), Settings.Basic.EMAIL_MAIL(), subject, body);

                StorieHandler.Setup();

                return(View());
            }
            catch (Exception e)
            {
                return(NotFound(HttpStatusCode.NotFound));
            }
            finally
            {
                try
                {
                    session.Access.UnQueue();
                }
                catch (Exception e)
                {
                    ;
                }
            }
        }