remove operation result
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using _0_Framework_b.Application;
|
||||
using _0_Framework.Application;
|
||||
using Company.Domain.FileAlert;
|
||||
using CompanyManagment.App.Contracts.File1;
|
||||
using CompanyManagment.App.Contracts.FileAlert;
|
||||
@@ -36,7 +36,7 @@ public class FileAlertApplication : IFileAlertApplication
|
||||
|
||||
|
||||
|
||||
return operation.Succcedded(entityId: fileAlert.id);
|
||||
return operation.Succcedded( fileAlert.id);
|
||||
}
|
||||
|
||||
public OperationResult Edit(EditFileAlert command)
|
||||
@@ -49,7 +49,7 @@ public class FileAlertApplication : IFileAlertApplication
|
||||
//fileAlert.Edit(command.Alert, command.Type);
|
||||
_fileAlertRepository.SaveChanges();
|
||||
|
||||
return operation.Succcedded(entityId: fileAlert.id);
|
||||
return operation.Succcedded(fileAlert.id);
|
||||
}
|
||||
|
||||
public OperationResult Remove(long id)
|
||||
@@ -59,7 +59,7 @@ public class FileAlertApplication : IFileAlertApplication
|
||||
_fileAlertRepository.Remove(id);
|
||||
_fileAlertRepository.SaveChanges();
|
||||
|
||||
return operation.Succcedded("عنوان با موفقیت حذف شد");
|
||||
return operation.Succcedded(-1,"عنوان با موفقیت حذف شد");
|
||||
}
|
||||
|
||||
public FileAlertViewModel GetDetails(long id)
|
||||
@@ -111,7 +111,7 @@ public class FileAlertApplication : IFileAlertApplication
|
||||
File_Id = file.Id,
|
||||
FileState_Id = file.State,
|
||||
AdditionalDeadline = 0
|
||||
}).EntityId;
|
||||
}).SendId;
|
||||
|
||||
var fileAlert = GetDetails(fileAlertId);
|
||||
if (workingDaysDifference < 0)
|
||||
|
||||
Reference in New Issue
Block a user