public ActionResult ParentCategory(bool showAll = false, string emptyTitle = "请选择") { var parenttypes = ProductCategoryService.GetParentCategorys(showAll).Select(o => new DropdownItem(o.CategorySN.ToString(), o.Title)).ToList(); parenttypes.Insert(0, new DropdownItem("", Server.UrlDecode(emptyTitle), true)); return(new JsonNetResult(parenttypes)); }