Esempio n. 1
0
 private async Task SyncSendsAsync(string userId, List <SendResponse> response)
 {
     var sends = response?.ToDictionary(s => s.Id, s => new SendData(s, userId)) ??
                 new Dictionary <string, SendData>();
     await _sendService.ReplaceAsync(sends);
 }
Esempio n. 2
0
 private Task SyncSendsAsync(string userId, List <SendResponse> sends) =>
 _sendService.ReplaceAsync(sends.ToDictionary(s => userId, s => new SendData(s, userId)));