From 13d9f2d9e8e1124706fe817ac4b1342c185c3b04 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Fri, 12 Dec 2025 10:42:03 +0530 Subject: [PATCH] Sending the orginal status code rather than hardcoded status code --- Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs b/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs index e861515..ba9d3a4 100644 --- a/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs +++ b/Marco.Pms.Services/Extensions/EncryptResponseAttribute.cs @@ -47,7 +47,7 @@ public class EncryptResponseAttribute : TypeFilterAttribute { Content = encryptedText, ContentType = "text/plain", - StatusCode = 200 + StatusCode = objectResult.StatusCode ?? 200 }; } }