Ejemplo n.º 1
0
 public NoticeController()
 {
     noticeService = ServiceBuilder.BuildNoticeService();
     paginate      = new Paginate()
     {
         PageSize = GLB.noticePerPageCount
     };
     conta_List_Notice = new Container_List_Notice();
 }
Ejemplo n.º 2
0
        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);
        }