public ActionResult Index() { //加载插件 PluginFinder _pluginFinder = new PluginFinder(); List<IShippingMethod> shippingMethodList = _pluginFinder.GetPlugins<IShippingMethod>().ToList(); ViewData["ShippingMethods"] = shippingMethodList; _indexService.GetTestName(); var TestTable = _indexService.GetTestTable(); var categoryModelList = TestTable.Select(p => { var categoryModel = new CategoryModel(); categoryModel.Id = p.Id; categoryModel.Name = p.Name; return categoryModel; }); IEnumerable<CategoryModel> CategoryModel = categoryModelList; return View(categoryModelList); }
public ActionResult Test(CategoryModel model) { return View(); }