public async Task <ResponseDTO <List <ModuleTreeDTO> > > GetModuleActionAsyn() { // ModuleTreeDTO var modules = (await _moduleDataAcces.ListAllAsync()).ToList(); var actions = (await _actionDataAcces.ListAllAsync()).ToList(); var tree = GetModulesForParent(null, modules, actions, new List <string>()); return(ResponseBuilder.Correct(tree)); }