Rename ToHttpMethod to ToHttpMethodName in RestTypeExtensions

Renamed the extension method ToHttpMethod to ToHttpMethodName in the RestTypeExtensions class for improved clarity. The method's functionality remains unchanged; it still returns the uppercase string representation of the RestType enum value.
This commit is contained in:
2025-12-15 12:47:59 +01:00
parent a0233fd876
commit cc2adab5e5

View File

@@ -17,7 +17,7 @@ public enum RestType
public static class RestTypeExtensions
{
public static string ToHttpMethod(this RestType restType)
public static string ToHttpMethodName(this RestType restType)
{
return restType.ToString().ToUpper();
}