示例#1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PortalUserModel" /> instances.
        /// </summary>
        /// <param name="personRoleId">
        ///     The value which identifies the <see cref="!:PortalUserModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PortalUserModel" /> instances that match the specified <paramref name="personRoleId" />.
        /// </returns>
        public static IEnumerable <Consensus.Portal.PortalUser> FetchAllByPersonRoleId(System.String personRoleId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.FetchAllByPersonRoleId(site, personRoleId));
        }
示例#2
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PortalUserModel" /> instances.
        /// </summary>
        /// <param name="sellingCompanyId">
        ///     The value which identifies the <see cref="!:PortalUserModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PortalUserModel" /> instances that match the specified <paramref name="sellingCompanyId" />.
        /// </returns>
        public static IEnumerable <Consensus.Portal.PortalUser> FetchAllBySellingCompanyId(System.String sellingCompanyId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.FetchAllBySellingCompanyId(site, sellingCompanyId));
        }
示例#3
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.GetTableName(site));
        }
示例#4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:PortalUserModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PortalUserModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PortalUserModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Portal.PortalUser FetchById(System.Int32 id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.FetchById(site, id));
        }
示例#5
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:PortalUserModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:PortalUserModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Portal.PortalUser> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.FetchAll(site));
        }
示例#6
0
        /// <summary>
        ///     Creates a new <see cref="!:PortalUserModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PortalUserModel" /> instance.
        /// </returns>
        public static Consensus.Portal.PortalUser Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.Create(site));
        }
示例#7
0
        public static System.Boolean CheckIfUsernameExist(System.String name, System.String userId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalUser.CheckIfUsernameExist(site, name, userId));
        }