diff --git a/CompanyManagment.Application/SmsSettingApplication.cs b/CompanyManagment.Application/SmsSettingApplication.cs index 0536735e..6b1d5651 100644 --- a/CompanyManagment.Application/SmsSettingApplication.cs +++ b/CompanyManagment.Application/SmsSettingApplication.cs @@ -136,6 +136,12 @@ public class SmsSettingApplication : ISmsSettingApplication public async Task InstantSendReminderSms(List command) { var op = new OperationResult(); + if (_hostEnvironment.IsDevelopment()) + { + + return op.Failed(" در محیط توسعه امکان ارسال وجود ندارد "); + + } string typeOfSms = "یادآور بدهی ماهانه"; string sendMessStart = "شروع یادآور آنی"; string sendMessEnd = "پایان یادآور آنی"; @@ -156,6 +162,13 @@ public class SmsSettingApplication : ISmsSettingApplication public async Task InstantSendBlockSms(List command) { var op = new OperationResult(); + + if (_hostEnvironment.IsDevelopment()) + { + + return op.Failed(" در محیط توسعه امکان ارسال وجود ندارد "); + + } string typeOfSms = "اعلام مسدودی طرف حساب"; string sendMessStart = "شروع مسدودی آنی"; string sendMessEnd = "پایان مسدودی آنی ";