예제 #1
0
        public ActionResult Index()
        {
            var profile = ConfigurationProfiles.GetActiveProfile();

            if (!profile.AllowRegistration || this.User.Identity.IsAuthenticated)
            {
                return(this.Redirect("/dashboard"));
            }

            return(this.View(this.GetRazorView <AreaRegistration>("SignUp/Index.cshtml")));
        }
예제 #2
0
        public ActionResult Index()
        {
            if (User.Identity.IsAuthenticated)
            {
                return(Redirect("/dashboard"));
            }

            var profile = ConfigurationProfiles.GetActiveProfile();


            var model = profile.Adapt <SignIn>() ?? new SignIn();

            return(View(GetRazorView <AreaRegistration>("SignIn/Index.cshtml"), model));
        }