Exemple #1
0
        public async Task <CountResult> UpdateReminderSummaryOutputedAsync(string SessionKey, int loginUserId, ReminderOutputed[] reminderOutputed, ReminderSummary[] ReminderSummary)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var processResult = new ProcessResult();
                var result = await reminderProcessor.UpdateReminderSummaryOutputedAsync(loginUserId, reminderOutputed, ReminderSummary, token);
                if (result > 0)
                {
                    processResult.Result = true;
                }

                return new CountResult
                {
                    ProcessResult = processResult,
                    Count = result,
                };
            }, logger));
        }
Exemple #2
0
 public async Task <int> UpdateReminderSummaryOutputed(ReminderSource source, CancellationToken token)
 => await reminderProcessor.UpdateReminderSummaryOutputedAsync(source.LoginUserId, source.ReminderOutputeds, source.Summaries, token);