예제 #1
0
        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()));
        }
예제 #2
0
 public string ButtonListToTree(List <ModuleButton> list, string dataBaseName = null)
 {
     return(TreeData.ButtonTreeJson(list.OrderBy(o => o.SortCode).ToList()));
 }