Example #1
0
        public ActionResult Page(int page)
        {
            var criteria = new Common.QueryCriteria();

            criteria.PageIndex = page;
            criteria.PageSize  = 15;

            var model = logBusiness.GetLogList(criteria);

            var viewModel = LogHeaderConvertor.ToViewModel(model);

            return(View(viewModel));
        }
Example #2
0
        public PagingModel <LogHeader> GetLogList(QueryCriteria criteria)
        {
            PagingModel <LogHeader> pagingModel = null;

            using (var sqlConn = SqlConnectionProvider.GetConnection(AppConst.RantaMaster))
            {
                var entity = logHeaderDal.GetLogList(criteria, sqlConn);

                pagingModel = LogHeaderConvertor.ToModel(entity);
            }

            return(pagingModel);
        }