Exemplo n.º 1
0
        void btnDeleteUnVerified_Click(object sender, EventArgs e)
        {
            int daysOld = 90;

            int.TryParse(txtDaysOld.Text, out daysOld);
            DateTime cutOffDate = DateTime.UtcNow;

            if (daysOld > 0)
            {
                cutOffDate = DateTime.UtcNow.AddDays(-daysOld);
            }

            subscriptions.DeleteUnverified(letterInfoGuid, cutOffDate);

            WebUtils.SetupRedirect(this, SiteRoot + "/eletter/LetterSubscribers.aspx?l=" + letterInfoGuid.ToString());
        }