From ca07dea38962dbd2bf0610f1ff0b8e473169a17a Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Mon, 27 Oct 2025 16:27:14 +0530 Subject: [PATCH] Removed the AsNoTraking in PurchaseOrderStatus edit API --- Marco.Pms.Services/Service/MasterService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Service/MasterService.cs b/Marco.Pms.Services/Service/MasterService.cs index 45a00ec..abb99f6 100644 --- a/Marco.Pms.Services/Service/MasterService.cs +++ b/Marco.Pms.Services/Service/MasterService.cs @@ -3484,7 +3484,7 @@ namespace Marco.Pms.Services.Service return ApiResponse.ErrorResponse("Invalid information", "User provided invalid information", 400); } - var existingPurchaseStatus = await _context.PurchaseOrderStatus.AsNoTracking().FirstOrDefaultAsync(pos => pos.Id == id && pos.TenantId == tenantId); + var existingPurchaseStatus = await _context.PurchaseOrderStatus.FirstOrDefaultAsync(pos => pos.Id == id && pos.TenantId == tenantId); if (existingPurchaseStatus == null) { _logger.LogWarning("Purchase Order Status {PurchaseOrderStatusId} not found in database for tenant {TenantId}", id, tenantId);