add validation for file operations

This commit is contained in:
MahanCh
2025-04-16 15:01:44 +03:30
parent 535e3943eb
commit 4cc0e72136
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public class PetitionApplication : IPetitionApplication
{
if (string.IsNullOrWhiteSpace(command.PetitionNo))
{
return operation.Failed("لطفا شماره دادنامه خودرا وارد کنید");
return operation.Failed("لطفا شماره دادنامه را وارد کنید");
}
if (string.IsNullOrWhiteSpace(command.NotificationPetitionDate))
@@ -86,7 +86,7 @@ public class PetitionApplication : IPetitionApplication
{
if (string.IsNullOrWhiteSpace(command.PetitionNo))
{
return operation.Failed("لطفا شماره دادنامه خودرا وارد کنید");
return operation.Failed("لطفا شماره دادنامه را وارد کنید");
}
if (string.IsNullOrWhiteSpace(command.NotificationPetitionDate))

View File

@@ -38,10 +38,10 @@ public class ProceedingSessionApplication : IProceedingSessionApplication
//var Time = new DateTime();
//Time = command.Time.ToGeorgianDateTime();
if (String.IsNullOrWhiteSpace(command.Date) && String.IsNullOrWhiteSpace(command.Time))
if (string.IsNullOrWhiteSpace(command.Date) && string.IsNullOrWhiteSpace(command.Time))
return operation.Succcedded();
if (String.IsNullOrWhiteSpace(command.Date) || String.IsNullOrWhiteSpace(command.Time))
if (string.IsNullOrWhiteSpace(command.Date) || string.IsNullOrWhiteSpace(command.Time))
return operation.Failed("تاریخ و زمان رسیدگی الزامی است");
var Date = new DateTime();