public async Task <CountResult> UpdateReminderOutputedAsync(string SessionKey, int loginUserId, ReminderOutputed[] ReminderOutputed) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var processResult = new ProcessResult(); var result = await reminderProcessor.UpdateReminderOutputedAsync(loginUserId, ReminderOutputed, token); if (result > 0) { processResult.Result = true; } return new CountResult { ProcessResult = processResult, Count = result, }; }, logger)); }
public async Task <int> UpdateReminderOutputed(ReminderSource source, CancellationToken token) => await reminderProcessor.UpdateReminderOutputedAsync(source.LoginUserId, source.ReminderOutputeds, token);