public async Task <ActionResult <IEnumerable <OrganizationDto> > > GetOrganizations(string name = null, bool treeView = false) { var orgs = await _orgService.GetAllAsync(name); return(Ok(treeView ? orgs.GetTreeLayout() : orgs)); }