public IActionResult jayAdmin(string deleteThese)
        {
            #region login

            bool result = login.checkSession();
            if (result == false)
            {
                curPage.errorMsg  = "Either you do not have access to these tools or your session has timed out...";
                TempData["error"] = curUser.returnMsg;
                return(RedirectToAction("Index", "VideoBackend", curPage));
            }

            AccountManager sqlStuff = new AccountManager();

            login userInformation = new login();
            curUser.username  = login.returnUsername();
            curUser.userTable = userdb;
            curUser           = AccountManager.checkAdmin(curUser);



            if (curUser.Admin != "Yes" && curUser.username == "jamunro")
            {
                curPage.errorMsg = "An error has occured, please try again. ";
                //AccountManager curUser = new AccountManager();
                TempData["error"] = curPage.errorMsg;
                return(RedirectToAction("Index", "VideoBackend", curPage));
            }


            #endregion


            VideoBackendViewModel videodata    = new VideoBackendViewModel();
            VideoBackEnd          videomethods = new VideoBackEnd();



            string[] tags = deleteThese.Split('|');

            foreach (var t in tags)
            {
                if (t != "")
                {
                    videomethods.deletetag(t);
                }
            }
            TempData["error"] = " Deleted " + deleteThese;

            videodata = videomethods.jayAllTags(videodata);
            return(View(videodata));
        }
        // JAY Tools //////////////////////////////////////////////////////////////////////////////////////////////////
        public IActionResult jayAdmin()
        {
            bool result = login.checkSession();

            if (result == false)
            {
                curPage.errorMsg  = "Either you do not have access to these tools or your session has timed out...";
                TempData["error"] = curUser.returnMsg;
                return(RedirectToAction("Index", "VideoBackend", curPage));
            }

            AccountManager sqlStuff = new AccountManager();

            login userInformation = new login();

            curUser.username  = login.returnUsername();
            curUser.userTable = userdb;
            curUser           = AccountManager.checkAdmin(curUser);



            if (curUser.Admin != "Yes" && curUser.username == "jamunro")
            {
                curPage.errorMsg = "An error has occured, please try again. ";
                //AccountManager curUser = new AccountManager();
                TempData["error"] = curPage.errorMsg;
                return(RedirectToAction("Index", "VideoBackend", curPage));
            }


            VideoBackendViewModel videodata    = new VideoBackendViewModel();
            VideoBackEnd          videomethods = new VideoBackEnd();

            videodata = videomethods.jayAllTags(videodata);

            return(View(videodata));
        }