Пример #1
0
    private void initLegalNotice()
    {
        int?id = LegalNoticeIdParameter;

        if (id != null)
        {
            Database           db      = Global.GetDbConnection();
            LegalNotice        notice  = db.GetLegalNotice((int)id);
            LegalNoticeVersion version = db.GetLatestLegalNoticeVersion((int)notice.Id);

            LegalNoticeId.Text = notice.Id.ToString();
            Description.Text   = notice.Description;
            Notice.Text        = version == null ? string.Empty : version.Notice;
        }
        else
        {
            Response.Redirect(Administrators_LegalNotices_Default.GetLoadUrl());
        }
    }
Пример #2
0
 private void redirectHome()
 {
     Response.Redirect(Administrators_LegalNotices_Default.GetLoadUrl());
 }