Ejemplo n.º 1
0
 private string RouteManageGivingSubscriptionsPledgeVolunteer(OnlineRegModel m)
 {
     if (m.RegisterLinkMaster())
     {
         if (m.registerLinkType.StartsWith("registerlink") || m.registerLinkType == "masterlink" || User.Identity.IsAuthenticated)
         {
             TempData["token"] = m.registertag;
             TempData["PeopleId"] = m.UserPeopleId ?? Util.UserPeopleId;
         }
         return $"/OnlineReg/RegisterLinkMaster/{m.Orgid}";
     }
     TempData["PeopleId"] = m.UserPeopleId ?? Util.UserPeopleId;
     if (m.ManagingSubscriptions())
         return $"/OnlineReg/ManageSubscriptions/{m.masterorgid}";
     if (m.ManageGiving())
         return $"/OnlineReg/ManageGiving/{m.Orgid}";
     if (m.OnlinePledge())
         return $"/OnlineReg/ManagePledge/{m.Orgid}";
     if (m.ChoosingSlots())
         return $"/OnlineReg/ManageVolunteer/{m.Orgid}";
     TempData.Remove("PeopleId");
     return null;
 }