From c6188900150ff1a9a64db6a8f8a6c643d0987655 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 7 Jan 2021 14:26:41 +0000 Subject: [PATCH] --- .../AyaNova/Controllers/EnumListController.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/server/AyaNova/Controllers/EnumListController.cs b/server/AyaNova/Controllers/EnumListController.cs index e42e2d9b..7107dcbd 100644 --- a/server/AyaNova/Controllers/EnumListController.cs +++ b/server/AyaNova/Controllers/EnumListController.cs @@ -404,29 +404,29 @@ namespace AyaNova.Api.Controllers ReturnList.Add(new NameIdItem() { Name = LT["LoanUnitRateYear"], Id = (long)LoanUnitRateUnit.Years }); } - else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(CustomerServiceRequestPriority).ToString()).ToLowerInvariant()) - {todo - TranslationKeysToFetch.Add("NotifyMailSecurityNone"); - TranslationKeysToFetch.Add("NotifyMailSecuritySSLTLS"); + else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(CustomerServiceRequestPriority).ToString()).ToLowerInvariant()) + { + TranslationKeysToFetch.Add("CustomerServiceRequestPriorityASAP"); + TranslationKeysToFetch.Add("CustomerServiceRequestPriorityNotUrgent"); TranslationKeysToFetch.Add("NotifyMailSecurityStartTls"); var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, translationId); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecurityNone"], Id = (long)NotifyMailSecurity.None }); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecuritySSLTLS"], Id = (long)NotifyMailSecurity.SSLTLS }); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecurityStartTls"], Id = (long)NotifyMailSecurity.StartTls }); + ReturnList.Add(new NameIdItem() { Name = LT["CustomerServiceRequestPriorityNotUrgent"], Id = (long)CustomerServiceRequestPriority.NotUrgent }); + ReturnList.Add(new NameIdItem() { Name = LT["CustomerServiceRequestPriorityASAP"], Id = (long)CustomerServiceRequestPriority.ASAP }); + ReturnList.Add(new NameIdItem() { Name = LT["CustomerServiceRequestPriorityEmergency"], Id = (long)CustomerServiceRequestPriority.Emergency }); } - else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(CustomerServiceRequestStatus).ToString()).ToLowerInvariant()) - {todo - TranslationKeysToFetch.Add("NotifyMailSecurityNone"); - TranslationKeysToFetch.Add("NotifyMailSecuritySSLTLS"); - TranslationKeysToFetch.Add("NotifyMailSecurityStartTls"); + else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(CustomerServiceRequestStatus).ToString()).ToLowerInvariant()) + { + TranslationKeysToFetch.Add("CustomerServiceRequestStatusOpen"); + TranslationKeysToFetch.Add("CustomerServiceRequestStatusAccepted"); + TranslationKeysToFetch.Add("CustomerServiceRequestStatusDeclined"); var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, translationId); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecurityNone"], Id = (long)NotifyMailSecurity.None }); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecuritySSLTLS"], Id = (long)NotifyMailSecurity.SSLTLS }); - ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecurityStartTls"], Id = (long)NotifyMailSecurity.StartTls }); + ReturnList.Add(new NameIdItem() { Name = LT["CustomerServiceRequestStatusOpen"], Id = (long)CustomerServiceRequestStatus.Open }); + ReturnList.Add(new NameIdItem() { Name = LT["CustomerServiceRequestStatusAccepted"], Id = (long)CustomerServiceRequestStatus.Accepted }); + ReturnList.Add(new NameIdItem() { Name = LT["CustomerServiceRequestStatusDeclined"], Id = (long)CustomerServiceRequestStatus.Declined }); } else {