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

ConfirmPickSlots() private method

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

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

            List<Person> Staff = null;
            Staff = DbUtil.Db.StaffPeopleForOrg(Orgid.Value);
            p.SendOneTimeLink(
                Staff.First().FromEmail,
                DbUtil.Db.ServerLink("/OnlineReg/ManageVolunteer/"), c.Title, c.Body);
            Log("SendOneTimeLinkManageVol");
            URL = null;
            return ConfirmEnum.ConfirmAccount;
        }