Beispiel #1
0
        public ActionResult List(DataSourceRequest command, ReceiveSearchCondition condition)
        {
            condition.PageSize   = command.PageSize;
            condition.PageNumber = command.Page - 1;

            var receives  = _receiveService.SearchReceives(condition);
            var gridModel = new DataSourceResult()
            {
                Data  = receives.DataSource,
                Total = receives.TotalItems
            };

            return(Json(gridModel));
        }