示例#1
0
        public IActionResult List()
        {
            EquipmentQueryModel queryModel = new EquipmentQueryModel();

            if (!string.IsNullOrEmpty(Request.Query["page"]))
            {
                queryModel.PageIndex = Convert.ToInt32(Request.Query["page"]);
            }
            if (!string.IsNullOrEmpty(Request.Query["args"]))
            {
                queryModel.QueryArgs = Request.Query["args"];
            }
            EquipmentListModel equipmentResult = _equipmentService.GetEquipmentByPagination(queryModel);

            equipmentResult.MatchQueryArgs();
            ViewBag.Equipment = equipmentResult;
            return(View());
        }