This commit is contained in:
2021-09-03 23:17:35 +00:00
parent 674473205e
commit 23f3dbf51e

View File

@@ -184,7 +184,7 @@ namespace AyaNova.Api.Controllers
else if (keyNameInLowerCase == "coreview")//all core objects user can read else if (keyNameInLowerCase == "coreview")//all core objects user can read
{ {
//core biz objects for UI facing purposes such as search form limit to object type etc //core biz objects for UI facing purposes
var rawvalues = Enum.GetValues(typeof(AyaType)); var rawvalues = Enum.GetValues(typeof(AyaType));
List<AyaType> allowedValues = new List<AyaType>(); List<AyaType> allowedValues = new List<AyaType>();
@@ -223,7 +223,7 @@ namespace AyaNova.Api.Controllers
} }
else if (keyNameInLowerCase == "coreedit")//all core objects current user can edit else if (keyNameInLowerCase == "coreedit")//all core objects current user can edit
{ {
//core biz objects for UI facing purposes such as search form limit to object type etc //core biz objects for UI facing purposes
var rawvalues = Enum.GetValues(typeof(AyaType)); var rawvalues = Enum.GetValues(typeof(AyaType));
List<AyaType> allowedValues = new List<AyaType>(); List<AyaType> allowedValues = new List<AyaType>();
@@ -262,8 +262,7 @@ namespace AyaNova.Api.Controllers
} }
else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(AyaType).ToString()).ToLowerInvariant()) else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(AyaType).ToString()).ToLowerInvariant())
{ {
//this is intended primarily for developers, not for UI facing so no need to localize or pretty it up //All types, used by search form and possibly others
//bs, it's just extra work not translated and developers only need the number, not the enumeration name which is for here only
var values = Enum.GetValues(typeof(AyaType)); var values = Enum.GetValues(typeof(AyaType));