/// <summary>
 /// Получить конфигурацию в текстовом виде
 /// </summary>
 public IResultValue <TDomain> GetConfiguration() =>
 GetConfigurationText().
 ToTransferValueJson <TTransfer>().
 ResultValueBindOk(configTransfer => _configurationConverter.FromTransfer(configTransfer));
Example #2
0
 public async Task <ActionResult <TId> > Post(TTransfer transfer) =>
 await _transferConverter.FromTransfer(transfer).
 ResultValueBindOkAsync(domain => _databaseDatabaseService.Post(domain)).
 ToActionResultValueTaskAsync();
 /// <summary>
 /// Получить данные по идентификатору асинхронно
 /// </summary>
 public async Task <IResultValue <TDomain> > GetAsync(TId id) =>
 await RestHttpClient.GetValueAsync <TTransfer>(RestRequest.GetRequest(id, ControllerName)).
 ResultValueBindOkTaskAsync(transfer => _transferConverter.FromTransfer(transfer));