Beispiel #1
0
        public static IEnumerable <Consensus.Document.SmsMessage> FetchAllBySmsMessageTypeId(System.Nullable <System.Int32> smsMessageTypeId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

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

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

            return(SmsMessage.FetchById(site, id));
        }
Beispiel #5
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 = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SmsMessage.FetchAll(site));
        }
Beispiel #6
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 = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SmsMessage.Create(site));
        }
Beispiel #7
0
        /// <summary>
        ///     Checks if smsmessage name exist.
        /// </summary>
        /// <param name="name">
        ///     Name of the smsmessage.
        /// </param>
        /// <param name="smsmessageId">
        ///     Id of the smsmessage.
        /// </param>
        /// <returns>
        ///     Whether smsmessage's name exist in database.
        /// </returns>
        public static System.Boolean CheckIfNameExist(System.String name, System.String smsmessageId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SmsMessage.CheckIfNameExist(site, name, smsmessageId));
        }