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"))); }
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)); }