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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user