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);