Ejemplo n.º 1
0
        public async Task <ReminderHistoriesResult> GetHistoryItemsByReminderIdAsync(string SessionKey, int reminderId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderHistoryProcessor.GetItemsByReminderIdAsync(reminderId, token)).ToList();

                return new ReminderHistoriesResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ReminderHistories = result,
                };
            }, logger));
        }
Ejemplo n.º 2
0
 public async Task <IEnumerable <ReminderHistory> > GetHistoryItemsByReminderId([FromBody] int reminderId, CancellationToken token)
 => (await reminderHistoryProcessor.GetItemsByReminderIdAsync(reminderId, token)).ToArray();