public async Task <string> GetTreeListAsync(Expression <Func <ModuleButton, bool> > where, string dataBaseName = null) { var data = await buttonRepository.GetListAsync(where); return(TreeData.ButtonTreeJson(data.ToList().OrderBy(o => o.SortCode).ToList())); }
public string ButtonListToTree(List <ModuleButton> list, string dataBaseName = null) { return(TreeData.ButtonTreeJson(list.OrderBy(o => o.SortCode).ToList())); }