code refactoring changes.

This commit is contained in:
Shreyas Zare
2023-02-05 16:32:28 +05:30
parent 975bc5d584
commit 73cbff24a0
7 changed files with 22 additions and 22 deletions

View File

@@ -120,7 +120,7 @@ namespace DnsServerCore
return parse(value);
}
public static T GetQueryOrForm<T>(this HttpRequest request, string parameter) where T : struct
public static T GetQueryOrFormEnum<T>(this HttpRequest request, string parameter) where T : struct
{
string value = request.QueryOrForm(parameter);
if (string.IsNullOrEmpty(value))
@@ -138,7 +138,7 @@ namespace DnsServerCore
return parse(value);
}
public static T GetQueryOrForm<T>(this HttpRequest request, string parameter, T defaultValue) where T : struct
public static T GetQueryOrFormEnum<T>(this HttpRequest request, string parameter, T defaultValue) where T : struct
{
string value = request.QueryOrForm(parameter);
if (string.IsNullOrEmpty(value))
@@ -169,7 +169,7 @@ namespace DnsServerCore
return true;
}
public static bool TryGetQueryOrForm<T>(this HttpRequest request, string parameter, out T value) where T : struct
public static bool TryGetQueryOrFormEnum<T>(this HttpRequest request, string parameter, out T value) where T : struct
{
string strValue = request.QueryOrForm(parameter);
if (string.IsNullOrEmpty(strValue))