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)); }
public async Task <IEnumerable <ReminderHistory> > GetHistoryItemsByReminderId([FromBody] int reminderId, CancellationToken token) => (await reminderHistoryProcessor.GetItemsByReminderIdAsync(reminderId, token)).ToArray();