public NoticeController() { noticeService = ServiceBuilder.BuildNoticeService(); paginate = new Paginate() { PageSize = GLB.noticePerPageCount }; conta_List_Notice = new Container_List_Notice(); }
public ResponseStatus GetNotices(HttpRequestBase req, NoticeType ntype, Paginate paginate, Container_List_Notice conta_Notice) { ResponseStatus resp = ResponseStatus.NONE; noticeDal = new NoticeDAL(); bool isResume = false; resp = noticeDal.GetNotices(isResume, paginate, ntype); conta_Notice.list_Notice = noticeDal.ListNotice; conta_Notice.paginate = paginate; noticeDal.ReturnUnitToPool(); return(resp); }