From 57d2b03c02c4990ab02fa69d7f3e55069bc9c417 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Sat, 26 Jul 2025 09:11:04 +0530 Subject: [PATCH] Change the id else logic to show proper message upon deletion or resotation of master entity in expenses module --- Marco.Pms.Services/Service/MasterService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marco.Pms.Services/Service/MasterService.cs b/Marco.Pms.Services/Service/MasterService.cs index e33fc59..daa4191 100644 --- a/Marco.Pms.Services/Service/MasterService.cs +++ b/Marco.Pms.Services/Service/MasterService.cs @@ -183,7 +183,7 @@ namespace Marco.Pms.Services.Service } public async Task> 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> 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> 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