public SelectAllSMSEmailSettingResponse SelectAll(SelectAllCommonRequest objRequest)
        {
            SelectAllSMSEmailSettingResponse objResponse = null;

            try
            {
                BaseScheduledSMSEmailSettingDAL objDAL = this.MyDal.GetDalRepository().GetScheduledSMSEmailSettingDAL();
                objResponse = (SelectAllSMSEmailSettingResponse)objDAL.SelectAll(objRequest);
            }
            catch (Exception ex)
            {
                objResponse = new SelectAllSMSEmailSettingResponse();
                objResponse.DisplayMessage   = CommonStrings.RetrievalErrorMessage.Replace("{}", "Scheduled SMS Email Setting");
                objResponse.ExceptionMessage = ex.Message;
                objResponse.StackTrace       = ex.StackTrace;

                this.SetLogger(this.GetLogger());
                this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace);
            }
            return(objResponse);
        }
        public UpdateOperationResponse UpdateRecord(SaveScheduledSMSEmailSettingRequest objRequest)
        {
            UpdateOperationResponse objResponse = null;

            try
            {
                BaseScheduledSMSEmailSettingDAL objDAL = this.MyDal.GetDalRepository().GetScheduledSMSEmailSettingDAL();
                objResponse = (UpdateOperationResponse)objDAL.UpdateRecord(objRequest);
            }
            catch (Exception ex)
            {
                objResponse = new UpdateOperationResponse();
                objResponse.DisplayMessage   = CommonStrings.UpdateErrorMessage.Replace("{}", "Scheduled SMS Email Setting");
                objResponse.ExceptionMessage = ex.Message;
                objResponse.StackTrace       = ex.StackTrace;

                this.SetLogger(this.GetLogger());
                this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace);
            }
            return(objResponse);
        }