public ActionResult AjaxHandler(jQueryDataTableParam param)
        {
            var vo = map.Map <jQueryDataTableParam, viewOptions>(param);

            vo.CI = CI;
            dataTableResult <Service.DTO.WorkerSigninList> was = serv.GetIndexView(vo);
            var result = was.query
                         .Select(e => map.Map <DTO.WorkerSigninList, ViewModel.WorkerSigninList>(e))
                         .AsEnumerable();

            return(Json(new
            {
                sEcho = param.sEcho,
                iTotalRecords = was.totalCount,
                iTotalDisplayRecords = was.filteredCount,
                aaData = result
            }));
        }
Ejemplo n.º 2
0
        public ActionResult AjaxHandler(jQueryDataTableParam param)
        {
            MapperHelpers.ClientTimeZoneInfo = _clientTimeZoneInfo;

            var vo = _map.Map <jQueryDataTableParam, viewOptions>(param);

            dataTableResult <WorkerSigninList> was = _serv.GetIndexView(vo);

            var result = was.query
                         .Select(e => _map.Map <WorkerSigninList, ViewModel.WorkerSigninList>(e))
                         .ToList();

            return(Json(new
            {
                param.sEcho,
                iTotalRecords = was.totalCount,
                iTotalDisplayRecords = was.filteredCount,
                aaData = result
            }));
        }