/// <summary>
        ///     Retrieves a collection of <see cref="!:AccountXrefModel" /> instances.
        /// </summary>
        /// <param name="roleId">
        ///     The value which identifies the <see cref="!:AccountXrefModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:AccountXrefModel" /> instances that match the specified <paramref name="roleId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.AccountXref> FetchAllByRoleId(System.String roleId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.FetchAllByRoleId(site, roleId));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:AccountXrefModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:AccountXrefModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:AccountXrefModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Finance.AccountXref FetchById(System.String id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.FetchById(site, id));
        }
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.GetTableName(site));
        }
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:AccountXrefModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:AccountXrefModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Finance.AccountXref> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.FetchAll(site));
        }
        /// <summary>
        ///     Creates a new <see cref="!:AccountXrefModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:AccountXrefModel" /> instance.
        /// </returns>
        public static Consensus.Finance.AccountXref Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.Create(site));
        }
        /// <summary>
        ///     Checks if a contact or organization exists while the data is saved.
        /// </summary>
        /// <param name="orgId">
        ///     Organization Id.
        /// </param>
        /// <param name="personid">
        ///     PersonId.
        /// </param>
        /// <returns>
        ///     Whether that person already exist for that committee in database.
        /// </returns>
        public static System.Boolean CheckIfContactOrOrganizationExists(System.String orgId, System.String personid)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.CheckIfContactOrOrganizationExists(site, orgId, personid));
        }
        /// <summary>
        ///     Checks if a contact already exist for that account in database.
        /// </summary>
        /// <param name="accountId">
        ///     accountId.
        /// </param>
        /// <param name="personId">
        ///     PersonId.
        /// </param>
        /// <param name="orgId">
        ///     Organisation Id.
        /// </param>
        /// <param name="accounteexrefid">
        ///     accounteexrefid.
        /// </param>
        /// <returns>
        ///     Whether that person already exist for that committee in database.
        /// </returns>
        public static System.Boolean CheckIfSameOrganisationAlreadyExists(System.String accountId, System.String personId, System.String orgId, System.String accounteexrefid)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.CheckIfSameOrganisationAlreadyExists(site, accountId, personId, orgId, accounteexrefid));
        }
        /// <summary>
        ///     Checks if a contact already exist for that account in database.
        /// </summary>
        /// <param name="accountId">
        ///     accountId.
        /// </param>
        /// <param name="roleId">
        ///     RoleId.
        /// </param>
        /// <param name="accounteexrefid">
        ///     accounteexrefid.
        /// </param>
        /// <returns>
        ///     Whether that person already exist for that committee in database.
        /// </returns>
        public static System.Boolean CheckIfSameContactAlreadyExists(System.String accountId, System.String roleId, System.String accounteexrefid)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(AccountXref.CheckIfSameContactAlreadyExists(site, accountId, roleId, accounteexrefid));
        }