public List <Office> GetOffices(int opportunityId) { return(_client.GetSubItems <Office>(PrimaryEntityType.Opportunity, opportunityId, "offices")); }
public List <CompanyAddress> GetAddresses(int companyId) { return(_client.GetSubItems <CompanyAddress>(PrimaryEntityType.Company, companyId, "addresses")); }