CmsWeb.Areas.OnlineReg.Models.OnlineRegModel.ConfirmManageSubscriptions C# (CSharp) Method

ConfirmManageSubscriptions() public method

public ConfirmManageSubscriptions ( ) : ConfirmEnum
return ConfirmEnum
        public ConfirmEnum ConfirmManageSubscriptions()
        {
            var p = List[0];
            if (p.IsNew)
                p.AddPerson(null, GetEntryPoint());
            if (p.CreatingAccount)
                p.CreateAccount();

            var c = DbUtil.Content("OneTimeConfirmation");
            if (c == null)
            {
                c = new Content();
                c.Name = "OneTimeConfirmation";
                c.Title = "Manage Your Subscriptions";
                c.Body = @"Hi {name},
            <p>Here is your <a href=""{url}"">link</a> to manage your subscriptions. (note: it will only work once for security reasons)</p>
            ";
                DbUtil.Db.Contents.InsertOnSubmit(c);
                DbUtil.Db.SubmitChanges();
            }

            var Staff = DbUtil.Db.StaffPeopleForOrg(masterorgid.Value);
            p.SendOneTimeLink(
                Staff.First().FromEmail,
                DbUtil.Db.ServerLink("/OnlineReg/ManageSubscriptions/"), c.Title, c.Body);
            Log("SendOneTimeLinkManageSub");
            return ConfirmEnum.ConfirmAccount;
        }