Exemple #1
0
        /// <summary>
        /// Renders page with login links
        /// </summary>
        public ActionResult LogOn()
        {
            if (null != appContext.User)
            {
                return(RedirectToAction("Week", "Inquiries"));
            }

            return(View(new LogOnModel
            {
                FacebookLoginUri = facebookClient.GetAccessCodeRequestUri(),
                GoogleLoginUri = googleClient.GetAccessCodeRequestUri()
            }));
        }