Ejemplo n.º 1
0
        /// <summary>
        /// 获取未查看通知个数
        /// </summary>
        /// <param name="session">session</param>
        /// <returns></returns>
        public Stream NoLookNoticeNumber(string session)
        {
            try
            {
                NoticeBLL noticeBLL = new NoticeBLL();
                string    resul     = noticeBLL.NoLookNoticeNumber(session);

                if (!string.IsNullOrEmpty(resul))
                {
                    return(new MemoryStream(Encoding.UTF8.GetBytes(resul)));
                }
                else
                {
                    return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
                }
            }
            catch (Exception err)
            {
                Logger.Error("NoLookNoticeNumber Error", err);
                return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
            }
        }