/// <summary> /// 根据父ID获取此ID下一级栏目,只显示一级子分类,包含删除的和未启用的 /// </summary> /// <param name="parentId"></param> /// <returns></returns> public static IList <CategoryInfo> ListByParentId(int parentId, bool showEnabled = false, bool showDeleted = true, WebLanguage language = WebLanguage.zh_cn) { var _list = CategoryManage.ListByParentId(parentId).AsEnumerable(); if (showEnabled) { _list = _list.Where(p => p.IsEnabled == true); } if (!showDeleted) { _list = _list.Where(p => p.IsDeleted == false); } foreach (var item in _list) { LoadExtionsion(item); } return(_list.ToList()); }