public IActionResult AttemptLogin(LoginModel loginModel = null)
        {
            if (loginModel != null)
            {
                loginModel.HttpContext = httpContext;
                loginModel.AttemptLogin();

                if (loginModel.LoginSuccess)
                {
                    return(RedirectToAction("Index", "Home"));
                }
                else
                {
                    return(View("Index", loginModel));
                }
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }