internal ConfirmEnum SendLinkForPledge()
{
var p = List[0];
if (p.IsNew)
p.AddPerson(null, p.org.EntryPointId ?? 0);
if (p.CreatingAccount)
p.CreateAccount();
var c = DbUtil.Content("OneTimeConfirmationPledge");
if (c == null)
{
c = new Content();
c.Name = "OneTimeConfirmationPledge";
c.Title = "Manage your pledge";
c.Body = @"Hi {name},
<p>Here is your <a href=""{url}"">link</a> to manage your pledge. (note: it will only work once for security reasons)</p> ";
DbUtil.Db.Contents.InsertOnSubmit(c);
DbUtil.Db.SubmitChanges();
}
p.SendOneTimeLink(
DbUtil.Db.StaffPeopleForOrg(Orgid.Value).First().FromEmail,
DbUtil.Db.ServerLink("/OnlineReg/ManagePledge/"), c.Title, c.Body);
Log("SendOneTimeLinkManagePledge");
return ConfirmEnum.ConfirmAccount;
}