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