Convert RestType to uppercase in the switch statement to ensure case-insensitive matching of REST types. This change handles variations like "get", "Get", and "GET" consistently. Additionally, use the null-conditional operator to prevent NullReferenceException when RestType is null.
ReC
Description
Languages
C#
100%