public async Task <ActionResult <IEnumerable <ReminderTemplateSetting> > > GetReminderTemplateSettingByCode(MasterSearchOption option, CancellationToken token)
 {
     if (string.IsNullOrEmpty(option.Code))
     {
         return((await reminderTemplateSettingProcessor.GetItemsAsync(option.CompanyId, token)).ToArray());
     }
     else
     {
         return new[] { await reminderTemplateSettingProcessor.GetByCodeAsync(option.CompanyId, option.Code, token) }
     };
 }
 public async Task <ReminderTemplateSettingsResult> GetReminderTemplateSettingsAsync(string SessionKey, int CompanyId)
 {
     return(await authorizationProcess.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await reminderTemplateSettingProcessor.GetItemsAsync(CompanyId, token)).ToList();
         return new ReminderTemplateSettingsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ReminderTemplateSettings = result,
         };
     }, logger));
 }