public IActionResult GetLeftMenu() { var moduleTree = _app.GetAllModules().GenerateTree(u => u.Id, u => u.ParentId, Guid.Empty.ToString()); return(Json(moduleTree)); //return null; }