Beispiel #1
0
 /// <summary>
 /// 更新公告
 /// </summary>
 /// <param name="user">公告信息</param>
 /// <returns>更新个数</returns>
 public int Update(NoticeUpdateInfo notice)
 {
     try
     {
         return(new NoticeManageDAL().Update(notice));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
        /// <summary>
        /// 更新公告
        /// </summary>
        /// <param name="user">公告信息</param>
        /// <returns>更新个数</returns>
        public int Update(NoticeUpdateInfo notice)
        {
            int count = 0;

            try
            {
                using (IDataSession session = AppDataFactory.CreateMainSession())
                {
                    //更新基本信息
                    count = session.Update <NoticeUpdateInfo>(notice);
                }
                return(count);
            }
            catch (Exception ex)
            {
                throw;
            }
        }