Ejemplo n.º 1
0
 public ActionResult NoLogin(OnlineRegModel m)
 {
     fromMethod = "NoLogin";
     // Clicked the register without logging in link
     m.nologin = true;
     m.CreateAnonymousList();
     m.Log("NoLogin");
     return FlowList(m);
 }
Ejemplo n.º 2
0
        private ActionResult RouteSpecialLogin(OnlineRegModel m)
        {
            if (Util.UserPeopleId == null)
                throw new Exception("Util.UserPeopleId is null on login");

            var link = RouteExistingRegistration(m);
            if(link.HasValue())
                return Redirect(link);

            m.CreateAnonymousList();
            m.UserPeopleId = Util.UserPeopleId;

            if (m.OnlineGiving())
            {
                m.Log("Login OnlineGiving");
                return RegisterFamilyMember(Util.UserPeopleId.Value, m);
            }

            link = RouteManageGivingSubscriptionsPledgeVolunteer(m);
            if (link.HasValue())
                return Content(link); // this will be used for a redirect in javascript

            return null;
        }