Esempio n. 1
0
        /// <summary>
        /// SearchSms
        /// </summary>
        public DataSet SearchSms(DateTime FromDate, DateTime ToDate)
        {
            Helpers.Connection.sConnectionStringDatabase = ConfigurationManager.ConnectionStrings["sConnectionString_Crm"].ConnectionString;
            SMSLibrary.SMSLibrary objSMS = new SMSLibrary.SMSLibrary();
            DataSet dtOut = objSMS.SearchSms(FromDate, ToDate);

            return(dtOut);
        }
Esempio n. 2
0
        /// <summary>
        /// ListSms
        /// </summary>
        public List <SMSModel> ListSms()
        {
            Helpers.Connection.sConnectionStringDatabase = ConfigurationManager.AppSettings["sConnectionString_Crm"];
            SMSLibrary.SMSLibrary objSMS = new SMSLibrary.SMSLibrary();
            var result = new List <SMSModel>();

            objSMS.ListSms().ForEach(x => { result.Add(new SMSModel(x)); });
            return(result);
        }
Esempio n. 3
0
 /// <summary>
 /// InsertSms
 /// </summary>
 public bool InsertSms(SMSModel obj)
 {
     Helpers.Connection.sConnectionStringDatabase = ConfigurationManager.ConnectionStrings["sConnectionString_Crm"].ConnectionString;
     SMSLibrary.SMSLibrary objSMS = new SMSLibrary.SMSLibrary();
     if (objSMS.InsertSms(obj.MappingToSMS()))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }