Use nameof() instead of strings

This commit is contained in:
Umar Bolatov
2020-07-20 20:02:14 -07:00
parent 36e3eeecaa
commit 25527ec1dd
2 changed files with 13 additions and 13 deletions

View File

@@ -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;