mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Use nameof() instead of strings
This commit is contained in:
@@ -60,11 +60,11 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
switch (sortOrderColumn)
|
||||
{
|
||||
case "Name":
|
||||
case nameof(app.AppName):
|
||||
return app.AppName;
|
||||
case "Store":
|
||||
case nameof(app.StoreName):
|
||||
return app.StoreName;
|
||||
case "AppType":
|
||||
case nameof(app.AppType):
|
||||
return app.AppType;
|
||||
default:
|
||||
return app.Id;
|
||||
|
||||
Reference in New Issue
Block a user