Exemplo n.º 1
0
        // GET: Arrears
        public ActionResult Index()
        {
            ArrearsDataListModel model = new ArrearsDataListModel();
            var name = _webWorkContext.CurrentUser.Name;

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Index(PageInfo pageInfo, ArrearsDataListModel model)
        {
            IPagedList <ArrearsData> UserList = _arrearsDataService.GetList(model.Name, pageInfo.PageIndex, pageInfo.PageSize, pageInfo.sortExpression);

            model.ArrearsDataList = UserList.MapTo <IList <ArrearsData>, IList <ArrearsDataModel> >();

            var results = new DataTable <ArrearsDataModel>()
            {
                Draw            = pageInfo.Draw + 1,
                RecordsTotal    = UserList.TotalCount,
                RecordsFiltered = UserList.TotalCount,
                Data            = model.ArrearsDataList
            };

            return(Json(new PlainJsonResponse(results)));
        }