public NoticeCollection() { NoticeDA da = new NoticeDA(); Notices = da.TableToEntity <NoticeBL>(da.GetNotices()); }
public bool DeleteNotice() { NoticeDA da = new NoticeDA(); return(da.DeleteNotice(id.ToString(), DeleteBy)); }
public bool AddNotice() { NoticeDA da = new NoticeDA(); return(da.AddNotice(Title, Context, CreateBy)); }
public bool UpdateNotice() { NoticeDA da = new NoticeDA(); return(da.UpdateNotice(id.ToString(), UpdateBy, Title, Context, Status)); }
public static NoticeBL CreateNotice(string id) { NoticeDA da = new NoticeDA(); return(da.TableToEntity <NoticeBL>(da.GetNotices(id)).First()); }