示例#1
0
        /// <summary>
        ///     Creates a new <see cref="!:UserGroupMemberModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:UserGroupMemberModel" /> instance.
        /// </returns>
        public static Consensus.Security.UserGroupMember Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Security.IUserGroupMemberModel model = provider.Security.UserGroupMember.Create();
            return(model == null ? null : new Consensus.Security.UserGroupMember(model));
        }
示例#2
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:GenericModelModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:GenericModelModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Common.GenericModel> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.IGenericModelModel> collection = provider.Common.GenericModel.FetchAll();

            return(collection.Select(model => new Consensus.Common.GenericModel(model)));
        }
示例#3
0
        /// <summary>
        ///     Creates a new <see cref="!:SmsMessageModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:SmsMessageModel" /> instance.
        /// </returns>
        public static Consensus.Document.SmsMessage Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Document.ISmsMessageModel model = provider.Document.SmsMessage.Create();
            return(model == null ? null : new Consensus.Document.SmsMessage(model));
        }
示例#4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:GenericModelModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:GenericModelModel" /> instance that matches the specified <paramref name="courseid" />; or null, if no matching instance can be found.
        /// </returns>
        public static IEnumerable <Consensus.Common.GenericModel> FetchAllByCourseIdSessions(ConsensusSite site, System.String courseid)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.IGenericModelModel> collection = provider.Common.GenericModel.FetchAllByCourseIdSessions(courseid);

            return(collection.Select(model => new Consensus.Common.GenericModel(model)));
        }
示例#5
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:GenericModelModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:GenericModelModel" /> instance that matches the specified <paramref name="courseid" />; or null, if no matching instance can be found.
        /// </returns>
        public static IEnumerable <Consensus.Common.GenericModel> ValidateDelegate(ConsensusSite site, System.String courseid, System.String proleid, System.String qualid, System.Int16 ignorefreeplaces, System.Int16 delquantity)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.IGenericModelModel> collection = provider.Common.GenericModel.ValidateDelegate(courseid, proleid, qualid, ignorefreeplaces, delquantity);

            return(collection.Select(model => new Consensus.Common.GenericModel(model)));
        }
        /// <summary>
        ///     Creates a new <see cref="!:PortalUserRoleModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PortalUserRoleModel" /> instance.
        /// </returns>
        public static Consensus.Portal.PortalUserRole Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Portal.IPortalUserRoleModel model = provider.Portal.PortalUserRole.Create();
            return(model == null ? null : new Consensus.Portal.PortalUserRole(model));
        }
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PortalUserRoleModel" /> instances.
        /// </summary>
        /// <param name="portalRoleId">
        ///     The value which identifies the <see cref="!:PortalUserRoleModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PortalUserRoleModel" /> instances that match the specified <paramref name="portalRoleId" />.
        /// </returns>
        public static IEnumerable <Consensus.Portal.PortalUserRole> FetchAllByPortalRoleId(ConsensusSite site, System.Int32 portalRoleId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Portal.IPortalUserRoleModel> collection = provider.Portal.PortalUserRole.FetchAllByPortalRoleId(portalRoleId);

            return(collection.Select(model => new Consensus.Portal.PortalUserRole(model)));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:PromotionModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PromotionModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PromotionModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Marketing.Promotion FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Marketing.IPromotionModel model = provider.Marketing.Promotion.FetchById(id);
            return(model == null ? null : new Consensus.Marketing.Promotion(model));
        }
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PromotionModel" /> instances.
        /// </summary>
        /// <param name="approverId">
        ///     The value which identifies the <see cref="!:PromotionModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PromotionModel" /> instances that match the specified <paramref name="approverId" />.
        /// </returns>
        public static IEnumerable <Consensus.Marketing.Promotion> FetchAllByApproverId(ConsensusSite site, System.String approverId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Marketing.IPromotionModel> collection = provider.Marketing.Promotion.FetchAllByApproverId(approverId);

            return(collection.Select(model => new Consensus.Marketing.Promotion(model)));
        }
示例#10
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:ProfileOrganisationModel" /> instances.
        /// </summary>
        /// <param name="organisationId">
        ///     The value which identifies the <see cref="!:ProfileOrganisationModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ProfileOrganisationModel" /> instances that match the specified <paramref name="organisationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Common.ProfileOrganisation> FetchAllByOrganisationId(ConsensusSite site, System.String organisationId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.IProfileOrganisationModel> collection = provider.Common.ProfileOrganisation.FetchAllByOrganisationId(organisationId);

            return(collection.Select(model => new Consensus.Common.ProfileOrganisation(model)));
        }
示例#11
0
        /// <summary>
        ///     Creates a new <see cref="!:PromotionModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PromotionModel" /> instance.
        /// </returns>
        public static Consensus.Marketing.Promotion Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Marketing.IPromotionModel model = provider.Marketing.Promotion.Create();
            return(model == null ? null : new Consensus.Marketing.Promotion(model));
        }
示例#12
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:ProfileOrganisationModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:ProfileOrganisationModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ProfileOrganisationModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Common.ProfileOrganisation FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.IProfileOrganisationModel model = provider.Common.ProfileOrganisation.FetchById(id);
            return(model == null ? null : new Consensus.Common.ProfileOrganisation(model));
        }
示例#13
0
        /// <summary>
        ///     Creates a new <see cref="!:ProfileOrganisationModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:ProfileOrganisationModel" /> instance.
        /// </returns>
        public static Consensus.Common.ProfileOrganisation Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.IProfileOrganisationModel model = provider.Common.ProfileOrganisation.Create();
            return(model == null ? null : new Consensus.Common.ProfileOrganisation(model));
        }
示例#14
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:UserGroupMemberModel" /> instances.
        /// </summary>
        /// <param name="groupId">
        ///     The value which identifies the <see cref="!:UserGroupMemberModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:UserGroupMemberModel" /> instances that match the specified <paramref name="groupId" />.
        /// </returns>
        public static IEnumerable <Consensus.Security.UserGroupMember> FetchAllByGroupId(ConsensusSite site, System.Int32 groupId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Security.IUserGroupMemberModel> collection = provider.Security.UserGroupMember.FetchAllByGroupId(groupId);

            return(collection.Select(model => new Consensus.Security.UserGroupMember(model)));
        }
示例#15
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:UserPrincipalModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:UserPrincipalModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Security.UserPrincipal> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Security.IUserPrincipalModel> collection = provider.Security.UserPrincipal.FetchAll();

            return(collection.Select(model => new Consensus.Security.UserPrincipal(model)));
        }
示例#16
0
        /// <summary>
        ///     Creates a new <see cref="!:PaymentModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PaymentModel" /> instance.
        /// </returns>
        public static Consensus.Finance.Payment Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Finance.IPaymentModel model = provider.Finance.Payment.Create();
            return(model == null ? null : new Consensus.Finance.Payment(model));
        }
示例#17
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:UserPrincipalModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:UserPrincipalModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:UserPrincipalModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Security.UserPrincipal FetchById(ConsensusSite site, System.Int32 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Security.IUserPrincipalModel model = provider.Security.UserPrincipal.FetchById(id);
            return(model == null ? null : new Consensus.Security.UserPrincipal(model));
        }
示例#18
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:PaymentModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PaymentModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Finance.Payment FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Finance.IPaymentModel model = provider.Finance.Payment.FetchById(id);
            return(model == null ? null : new Consensus.Finance.Payment(model));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:PortalUserRoleModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PortalUserRoleModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PortalUserRoleModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Portal.PortalUserRole FetchById(ConsensusSite site, System.Int32 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Portal.IPortalUserRoleModel model = provider.Portal.PortalUserRole.FetchById(id);
            return(model == null ? null : new Consensus.Portal.PortalUserRole(model));
        }
示例#20
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentModel" /> instances.
        /// </summary>
        /// <param name="refundId">
        ///     The value which identifies the <see cref="!:PaymentModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentModel" /> instances that match the specified <paramref name="refundId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.Payment> FetchAllByRefundId(ConsensusSite site, System.String refundId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Finance.IPaymentModel> collection = provider.Finance.Payment.FetchAllByRefundId(refundId);

            return(collection.Select(model => new Consensus.Finance.Payment(model)));
        }
示例#21
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:GenericModelModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:GenericModelModel" /> instance that matches the specified <paramref name="accId" />; or null, if no matching instance can be found.
        /// </returns>
        public static IEnumerable <Consensus.Common.GenericModel> FetchAllByAccIdAccountXref(ConsensusSite site, System.String accId, System.String proleId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.IGenericModelModel> collection = provider.Common.GenericModel.FetchAllByAccIdAccountXref(accId, proleId);

            return(collection.Select(model => new Consensus.Common.GenericModel(model)));
        }
示例#22
0
        /// <summary>
        ///     Creates a new <see cref="!:AkaModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:AkaModel" /> instance.
        /// </returns>
        public static Consensus.Contact.Aka Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Contact.IAkaModel model = provider.Contact.Aka.Create();
            return(model == null ? null : new Consensus.Contact.Aka(model));
        }
示例#23
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:GenericModelModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:GenericModelModel" /> instance that matches the specified <paramref name="courseid" />; or null, if no matching instance can be found.
        /// </returns>
        public static IEnumerable <Consensus.Common.GenericModel> FetchAllByProdIdPrices(ConsensusSite site, System.String prodid, System.Int32 qty)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.IGenericModelModel> collection = provider.Common.GenericModel.FetchAllByProdIdPrices(prodid, qty);

            return(collection.Select(model => new Consensus.Common.GenericModel(model)));
        }
示例#24
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:AkaModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:AkaModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:AkaModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Contact.Aka FetchById(ConsensusSite site, System.Int32 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Contact.IAkaModel model = provider.Contact.Aka.FetchById(id);
            return(model == null ? null : new Consensus.Contact.Aka(model));
        }
示例#25
0
        /// <summary>
        ///     Creates a new <see cref="!:GenericModelModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:GenericModelModel" /> instance.
        /// </returns>
        public static Consensus.Common.GenericModel Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.IGenericModelModel model = provider.Common.GenericModel.Create();
            return(model == null ? null : new Consensus.Common.GenericModel(model));
        }
示例#26
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:AkaModel" /> instances.
        /// </summary>
        /// <param name="pnIdId">
        ///     The value which identifies the <see cref="!:AkaModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:AkaModel" /> instances that match the specified <paramref name="pnIdId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Aka> FetchAllByPnIdId(ConsensusSite site, System.String pnIdId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Contact.IAkaModel> collection = provider.Contact.Aka.FetchAllByPnIdId(pnIdId);

            return(collection.Select(model => new Consensus.Contact.Aka(model)));
        }
示例#27
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:GenericModelModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:GenericModelModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:GenericModelModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Common.GenericModel FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.IGenericModelModel model = provider.Common.GenericModel.FetchById(id);
            return(model == null ? null : new Consensus.Common.GenericModel(model));
        }
示例#28
0
        /// <summary>
        ///     Creates a new <see cref="!:UserPrincipalModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:UserPrincipalModel" /> instance.
        /// </returns>
        public static Consensus.Security.UserPrincipal Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Security.IUserPrincipalModel model = provider.Security.UserPrincipal.Create();
            return(model == null ? null : new Consensus.Security.UserPrincipal(model));
        }
示例#29
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:SmsMessageModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:SmsMessageModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Document.SmsMessage> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Document.ISmsMessageModel> collection = provider.Document.SmsMessage.FetchAll();

            return(collection.Select(model => new Consensus.Document.SmsMessage(model)));
        }
示例#30
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:SellingCompanyModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:SellingCompanyModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:SellingCompanyModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Common.SellingCompany FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.ISellingCompanyModel model = provider.Common.SellingCompany.FetchById(id);
            return(model == null ? null : new Consensus.Common.SellingCompany(model));
        }