Exemplo n.º 1
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:SysConfigModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:SysConfigModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Common.SysConfig> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

            return(PaymentCheque.FetchById(site, id));
        }
Exemplo n.º 3
0
        public static System.String GetTableName(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            return(provider.Finance.PaymentCheque.GetTableName());
        }
Exemplo n.º 4
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances.
        /// </summary>
        /// <param name="cardholderRoleId">
        ///     The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="cardholderRoleId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllByCardholderRoleId(System.String cardholderRoleId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PaymentCheque.FetchAllByCardholderRoleId(site, cardholderRoleId));
        }
Exemplo n.º 5
0
        /// <summary>
        ///     Creates a new <see cref="!:PaymentChequeModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PaymentChequeModel" /> instance.
        /// </returns>
        public static Consensus.Finance.PaymentCheque Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PaymentCheque.Create(site));
        }
Exemplo n.º 6
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:LocationModel" /> instances.
        /// </summary>
        /// <param name="linkedLocationId">
        ///     The value which identifies the <see cref="!:LocationModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:LocationModel" /> instances that match the specified <paramref name="linkedLocationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Location> FetchAllByLinkedLocationId(ConsensusSite site, System.String linkedLocationId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Contact.ILocationModel> collection = provider.Contact.Location.FetchAllByLinkedLocationId(linkedLocationId);

            return(collection.Select(model => new Consensus.Contact.Location(model)));
        }
Exemplo n.º 7
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentCardModel" /> instances.
        /// </summary>
        /// <param name="bookingId">
        ///     The value which identifies the <see cref="!:PaymentCardModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentCardModel" /> instances that match the specified <paramref name="bookingId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCard> FetchAllByBookingId(System.String bookingId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

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

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

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

            return(OrganisationAddress.FetchAll(site));
        }
Exemplo n.º 12
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:SysConfigModel" /> instances.
        /// </summary>
        /// <param name="sellingCompanyId">
        ///     The value which identifies the <see cref="!:SysConfigModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:SysConfigModel" /> instances that match the specified <paramref name="sellingCompanyId" />.
        /// </returns>
        public static IEnumerable <Consensus.Common.SysConfig> FetchAllBySellingCompanyId(ConsensusSite site, System.String sellingCompanyId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.ISysConfigModel> collection = provider.Common.SysConfig.FetchAllBySellingCompanyId(sellingCompanyId);

            return(collection.Select(model => new Consensus.Common.SysConfig(model)));
        }
Exemplo n.º 13
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:SysConfigModel" /> instances.
        /// </summary>
        /// <param name="sellingCompanyId">
        ///     The value which identifies the <see cref="!:SysConfigModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:SysConfigModel" /> instances that match the specified <paramref name="sellingCompanyId" />.
        /// </returns>
        public static IEnumerable <Consensus.Common.SysConfig> FetchAllBySellingCompanyId(System.String sellingCompanyId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SysConfig.FetchAllBySellingCompanyId(site, sellingCompanyId));
        }
Exemplo n.º 14
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:SysConfigModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:SysConfigModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:SysConfigModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Common.SysConfig FetchById(System.Int32 id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SysConfig.FetchById(site, id));
        }
Exemplo n.º 15
0
        public static System.String GetTableName(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            return(provider.Contact.Location.GetTableName());
        }
        /// <summary>
        ///     Retrieves a collection of <see cref="!:OrganisationAddressModel" /> instances.
        /// </summary>
        /// <param name="organisationId">
        ///     The value which identifies the <see cref="!:OrganisationAddressModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OrganisationAddressModel" /> instances that match the specified <paramref name="organisationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.OrganisationAddress> FetchAllByOrganisationId(System.String organisationId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(OrganisationAddress.FetchAllByOrganisationId(site, organisationId));
        }
Exemplo n.º 17
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:LocationModel" /> instances.
        /// </summary>
        /// <param name="linkedLocationId">
        ///     The value which identifies the <see cref="!:LocationModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:LocationModel" /> instances that match the specified <paramref name="linkedLocationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Location> FetchAllByLinkedLocationId(System.String linkedLocationId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Location.FetchAllByLinkedLocationId(site, linkedLocationId));
        }
        /// <summary>
        ///     Retrieves a collection of <see cref="!:OrganisationAddressModel" /> instances.
        /// </summary>
        /// <param name="organisationId">
        ///     The value which identifies the <see cref="!:OrganisationAddressModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OrganisationAddressModel" /> instances that match the specified <paramref name="organisationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Contact.OrganisationAddress> FetchAllByOrganisationId(ConsensusSite site, System.String organisationId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Contact.IOrganisationAddressModel> collection = provider.Contact.OrganisationAddress.FetchAllByOrganisationId(organisationId);

            return(collection.Select(model => new Consensus.Contact.OrganisationAddress(model)));
        }
Exemplo n.º 19
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentCardModel" /> instances.
        /// </summary>
        /// <param name="organisationId">
        ///     The value which identifies the <see cref="!:PaymentCardModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentCardModel" /> instances that match the specified <paramref name="organisationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCard> FetchAllByOrganisationId(ConsensusSite site, System.String organisationId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Finance.IPaymentCardModel> collection = provider.Finance.PaymentCard.FetchAllByOrganisationId(organisationId);

            return(collection.Select(model => new Consensus.Finance.PaymentCard(model)));
        }
Exemplo n.º 20
0
        /// <summary>
        ///     Check if Location Reference exist or not.
        /// </summary>
        /// <param name="reference">
        ///     Location Reference.
        /// </param>
        /// <param name="locationId">
        ///     Id of Location.
        /// </param>
        /// <returns>
        ///     Whether loction exist or not.
        /// </returns>
        public static System.Boolean CheckIfLocationReferenceExist(System.String reference, System.String locationId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Location.CheckIfLocationReferenceExist(site, reference, locationId));
        }
Exemplo n.º 21
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances.
        /// </summary>
        /// <param name="letterTemplateId">
        ///     The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="letterTemplateId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllByLetterTemplateId(System.String letterTemplateId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PaymentCheque.FetchAllByLetterTemplateId(site, letterTemplateId));
        }
Exemplo n.º 22
0
        /// <summary>
        ///     Check if Location Reference exist or not.
        /// </summary>
        /// <param name="reference">
        ///     Location Reference.
        /// </param>
        /// <param name="locationId">
        ///     Id of Location.
        /// </param>
        /// <returns>
        ///     Whether loction exist or not.
        /// </returns>
        public static System.Boolean CheckIfLocationReferenceExist(ConsensusSite site, System.String reference, System.String locationId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            return(provider.Contact.Location.CheckIfLocationReferenceExist(reference, locationId));
        }
Exemplo n.º 23
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances.
        /// </summary>
        /// <param name="cardholderRoleId">
        ///     The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="cardholderRoleId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllByCardholderRoleId(ConsensusSite site, System.String cardholderRoleId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Finance.IPaymentChequeModel> collection = provider.Finance.PaymentCheque.FetchAllByCardholderRoleId(cardholderRoleId);

            return(collection.Select(model => new Consensus.Finance.PaymentCheque(model)));
        }
Exemplo n.º 24
0
        /// <summary>
        ///     Creates a new <see cref="!:LocationModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:LocationModel" /> instance.
        /// </returns>
        public static Consensus.Contact.Location Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Location.Create(site));
        }
Exemplo n.º 25
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:PaymentChequeModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:PaymentChequeModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PaymentCheque.FetchAll(site));
        }
Exemplo n.º 26
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:LocationModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:LocationModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Location> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Location.FetchAll(site));
        }
Exemplo n.º 27
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

            return(Location.FetchById(site, id));
        }
Exemplo n.º 29
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PaymentChequeModel" /> instances.
        /// </summary>
        /// <param name="sellingCompanyId">
        ///     The value which identifies the <see cref="!:PaymentChequeModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PaymentChequeModel" /> instances that match the specified <paramref name="sellingCompanyId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.PaymentCheque> FetchAllBySellingCompanyId(System.String sellingCompanyId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PaymentCheque.FetchAllBySellingCompanyId(site, sellingCompanyId));
        }
Exemplo n.º 30
0
        /// <summary>
        ///     Creates a new <see cref="!:SysConfigModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:SysConfigModel" /> instance.
        /// </returns>
        public static Consensus.Common.SysConfig Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SysConfig.Create(site));
        }