Sending the orginal status code rather than hardcoded status code

This commit is contained in:
ashutosh.nehete 2025-12-12 10:42:03 +05:30
parent 910110f86d
commit 13d9f2d9e8

View File

@ -47,7 +47,7 @@ public class EncryptResponseAttribute : TypeFilterAttribute
{
Content = encryptedText,
ContentType = "text/plain",
StatusCode = 200
StatusCode = objectResult.StatusCode ?? 200
};
}
}