示例#1
0
        public NoticeCollection()
        {
            NoticeDA da = new NoticeDA();

            Notices = da.TableToEntity <NoticeBL>(da.GetNotices());
        }
示例#2
0
        public bool DeleteNotice()
        {
            NoticeDA da = new NoticeDA();

            return(da.DeleteNotice(id.ToString(), DeleteBy));
        }
示例#3
0
        public bool AddNotice()
        {
            NoticeDA da = new NoticeDA();

            return(da.AddNotice(Title, Context, CreateBy));
        }
示例#4
0
        public bool UpdateNotice()
        {
            NoticeDA da = new NoticeDA();

            return(da.UpdateNotice(id.ToString(), UpdateBy, Title, Context, Status));
        }
示例#5
0
        public static NoticeBL CreateNotice(string id)
        {
            NoticeDA da = new NoticeDA();

            return(da.TableToEntity <NoticeBL>(da.GetNotices(id)).First());
        }