add validation for file operations
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user