/// <summary> /// This method is used to get all groups on the server. /// </summary> /// <returns>List of groups</returns> public DataResponse <Groups> GetAllGroups() { var groups = new Groups { GroupList = new List <GroupInfo>() }; return(_serverClientV1.Get(groups, _baseUrl)); }
/// <summary> /// This method is used to get the list of users. /// </summary> /// <returns> List of users from the server.</returns> public Users GetAllUsers() { var users = new Users { UserList = new List <UserInfo>() }; var result = _serverClientV1.Get(users, _baseUrl).Content; return(JsonConvert.DeserializeObject <Users>(result)); }
/// <summary> /// This method is used to get all groups on the server. /// </summary> /// <returns>List of groups</returns> public Groups GetAllGroups() { var groups = new Groups { GroupList = new List <GroupInfo>() }; var result = _serverClientV1.Get(groups, _baseUrl); if (result != null) { return(JsonConvert.DeserializeObject <Groups>(result.Content)); } else { return(new Groups()); } }