public ActionResult GetVehicleTypeInfo(VehicleTypeSearchModel model, int searchPage) { SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel> result = new SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel>(); result.SearchModel = model; result.PagedDatas = VehicleMaintainBLL.GetPagedVehicleType(model, searchPage, this.PageSize); return(PartialView("_VehicleTypesGrid", result)); }
public ActionResult SelectVehicleType() { SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel> model = new SearchDataWithPagedDatas <VehicleTypeSearchModel, VehicleTypeListModel>(); model.SearchModel = new VehicleTypeSearchModel(); model.PagedDatas = VehicleMaintainBLL.GetPagedVehicleType(model.SearchModel, 1, this.PageSize); return(PartialView("_SelectVehicleType", model)); }