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

            var deliveries = _deliveryService.SearchDeliveries(condition);
            var gridModel  = new DataSourceResult()
            {
                Data  = deliveries.DataSource,
                Total = deliveries.TotalItems
            };

            return(Json(gridModel));
        }
示例#2
0
        public ActionResult List()
        {
            var model = new DeliverySearchCondition();

            return(View(model));
        }