private List <object> GetGroupsList(Environment env) { if (m_GroupsService != null) { List <DirGroupsReplyData> groups = m_GroupsService.FindGroups(string.Empty, string.Empty); if (groups != null && groups.Count > 0) { return(WebAppUtils.Objectify <DirGroupsReplyData>(groups)); } } return(new List <object>()); }