Change the id else logic to show proper message upon deletion or resotation of master entity in expenses module
This commit is contained in:
parent
aa47bfe59c
commit
57d2b03c02
@ -183,7 +183,7 @@ namespace Marco.Pms.Services.Service
|
||||
}
|
||||
public async Task<ApiResponse<object>> DeleteExpenseTypeAsync(Guid id, bool isActive, Employee loggedInEmployee, Guid tenantId)
|
||||
{
|
||||
string action = isActive ? "delete" : "restore";
|
||||
string action = isActive ? "restore" : "delete";
|
||||
try
|
||||
{
|
||||
// Validation if employee is taking action in same tenant
|
||||
@ -437,7 +437,7 @@ namespace Marco.Pms.Services.Service
|
||||
}
|
||||
public async Task<ApiResponse<object>> DeleteExpensesStatusAsync(Guid id, bool isActive, Employee loggedInEmployee, Guid tenantId)
|
||||
{
|
||||
string action = isActive ? "delete" : "restore";
|
||||
string action = isActive ? "restore" : "delete";
|
||||
try
|
||||
{
|
||||
// Validation if employee is taking action in same tenant
|
||||
@ -639,7 +639,7 @@ namespace Marco.Pms.Services.Service
|
||||
}
|
||||
public async Task<ApiResponse<object>> DeletePaymentModeAsync(Guid id, bool isActive, Employee loggedInEmployee, Guid tenantId)
|
||||
{
|
||||
string action = isActive ? "delete" : "restore";
|
||||
string action = isActive ? "restore" : "delete";
|
||||
try
|
||||
{
|
||||
// Validation if employee is taking action in same tenant
|
||||
|
Loading…
x
Reference in New Issue
Block a user