Example #1
0
 public async Task <ActionResult <IReadOnlyCollection <TId> > > Post(IList <TTransfer> transfers) =>
 await _transferConverter.FromTransfers(transfers).
 ResultCollectionBindOkAsync(domains => _databaseDatabaseService.Post(domains)).
 ToActionResultCollectionTaskAsync();
 /// <summary>
 /// Получить данные асинхронно
 /// </summary>
 public async Task <IResultCollection <TDomain> > GetAsync() =>
 await RestHttpClient.GetCollectionAsync <TTransfer>(RestRequest.GetRequest(ControllerName)).
 ResultCollectionBindOkTaskAsync(transfers => _transferConverter.FromTransfers(transfers));