/// <summary>
 /// To get role of the Organization based on role Id.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="roleId">Id (Long) of the Organization role.</param>
 public APIResponse GetRole(long roleId)
 {
     return(OrganizationAPIHandler.GetInstance().GetRole(roleId));
 }
 /// <summary>
 /// To get user of the Organization based on used Id.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="userId">Id (Long) of the Organization user.</param>
 public APIResponse GetUser(long userId)
 {
     return(OrganizationAPIHandler.GetInstance().GetUser(userId));
 }
 /// <summary>
 /// To get all roles of the Organization.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMRole&gt; class instance.</returns>
 public BulkAPIResponse <ZCRMRole> GetAllRoles()
 {
     return(OrganizationAPIHandler.GetInstance().GetAllRoles());
 }
 /// <summary>
 /// To get current user of the Organization.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 public APIResponse GetCurrentUser()
 {
     return(OrganizationAPIHandler.GetInstance().GetCurrentUser());
 }
 /// <summary>
 /// To get all active confirmed admins of the Organization based on page and perPage.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMUser&gt; class instance.</returns>
 /// <param name="page">Starting page index (Integer)</param>
 /// <param name="perPage">Number of records per page (Integer)</param>
 public BulkAPIResponse <ZCRMUser> GetAllActiveConfirmedAdmins(int page, int perPage)
 {
     return(OrganizationAPIHandler.GetInstance().GetAllActiveConfirmedAdmins(page, perPage));
 }
 /// <summary>
 /// To get all in active users of the Organization based on page and perPage.
 /// </summary>
 /// <returns>BulkAPIResponse&lt;ZCRMUser&gt; class instance.</returns>
 /// <param name="page">Starting page index (Integer)</param>
 /// <param name="perPage">Number of records per page (Integer)</param>
 public BulkAPIResponse <ZCRMUser> GetAllInActiveUsers(int page, int perPage)
 {
     return(OrganizationAPIHandler.GetInstance().GetAllDeactivatedUsers(page, perPage));
 }
 /// <summary>
 /// To get all user of the Organization based on modifiedSince(Header), page and perPage.
 /// </summary>
 /// <returns>BulkAPIResponse&l;ZCRMUser&gt; class instance.</returns>
 /// <param name="modifiedSince">DateTime(ISO8601 format) to display users which are modified after the given input datetime (String)</param>
 /// <param name="page">Starting page index (Integer)</param>
 /// <param name="perPage">Number of records per page (Integer)</param>
 public BulkAPIResponse <ZCRMUser> GetAllUsers(string modifiedSince, int page, int perPage)
 {
     return(OrganizationAPIHandler.GetInstance().GetAllUsers(modifiedSince, page, perPage));
 }
 /// <summary>
 /// To get ZohoCRM Organization Details.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 public APIResponse GetOrganizationDetails()
 {
     return(OrganizationAPIHandler.GetInstance().GetOrganizationDetails());
 }