Exemplo n.º 1
0
        public void Send(Email email)
        {
            var webPage = WebPaths.GetDomain() + "/OptinConfirm/Join/" + this.Token;
            var msg     = "<p>Hi " + this.Name + "</p><p>Thanks for joining us! There is one thing we need, and that is for you to verify you want our occasional emails. To do so, simply visit this page: <a href=\"" + webPage + "\" > " + webPage + "</a><p>Please don't forget to add us to your safe list.</p>";

            email.SendEmail(this.EmailAddress, null, msg, "Confirm your subscription to Stage Plan");
        }
Exemplo n.º 2
0
        public int SaveBand(string name, decimal width, decimal height, int userAccountId, string bandWebUrl, string socialMediaUrl, string genre, string country, bool willSaveForRecent)
        {
            var dc        = new Dal.StageplanEntities();
            var guid      = GetUniqueGuid();
            var stagePlan = new Dal.Stageplan()
            {
                BandName              = name,
                Token                 = guid,
                Height                = height,
                Width                 = width,
                SavedByAccountId      = userAccountId,
                CreationDate          = DateTime.Now,
                Genre                 = genre,
                SocialMedia           = WebPaths.AddMissingHttp(socialMediaUrl),
                Website               = WebPaths.AddMissingHttp(bandWebUrl),
                Country               = country,
                WillShowInRecentBands = willSaveForRecent
            };

            dc.Stageplans.Add(stagePlan);

            if (base.SaveToDatabase(dc))
            {
                return(stagePlan.Id);
            }

            return(-99);
        }
Exemplo n.º 3
0
 public string GetUrl(int id)
 {
     return(WebPaths.GetPlan(base.DataContext.Stageplans.Single(a => a.Id == id && !a.IsDeprecated).Token));
 }