public Task <IReadOnlyList <Organization> > GetAll(string user, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(user, "user"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <Organization>(ApiUrls.UserOrganizations(user), options)); }
/// <summary> /// Returns all <see cref="Organization" />s for the current user. /// </summary> /// <param name="options">Options for changing the API response</param> /// <exception cref="ApiException">Thrown when a general API error occurs.</exception> /// <returns>A list of the current user's <see cref="Organization"/>s.</returns> public Task <IReadOnlyList <Organization> > GetAllForCurrent(ApiOptions options) { Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <Organization>(ApiUrls.UserOrganizations(), options)); }