/// <summary>
        /// 新建
        /// </summary>
        public static Announcements New()
        {
            Announcements announcements = new Announcements();

            announcements.Id             = 0;
            announcements.Subject        = string.Empty;
            announcements.Body           = string.Empty;
            announcements.DateRelease    = DateTime.UtcNow;
            announcements.DateExpired    = DateTime.UtcNow;
            announcements.DateLastupdate = DateTime.UtcNow;
            announcements.IsEnabled      = false;
            announcements.DisplayOrder   = 0;
            announcements.Userid         = 0;
            announcements.DateCreate     = DateTime.UtcNow;
            return(announcements);
        }
 /// <summary>
 /// 编辑站点公告
 /// </summary>
 /// <param name="announcements"></param>
 /// <returns></returns>
 public bool EditAnnouncements(Announcements announcements)
 {
     return(announcementsRepository.UpdateCache(announcements));
 }