/// <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); }
/// <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); }
/// <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); } }