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

@@ -497,7 +497,7 @@ namespace DnsServerCore
HttpRequest request = context.Request;
string strType = request.GetQueryOrForm("type", "lastHour");
TopStatsType statsType = request.GetQueryOrForm<TopStatsType>("statsType");
TopStatsType statsType = request.GetQueryOrFormEnum<TopStatsType>("statsType");
int limit = request.GetQueryOrForm("limit", int.Parse, 1000);
List<KeyValuePair<string, long>> topStatsData;