/// <summary> /// Сохранить кошелек. /// </summary> /// <param name="wallet">Сохраняемый кошелек.</param> /// <returns>Сохраненный кошелек с заполненным идентификатором</returns> public Guid Save(WalletBase wallet) { using (var uow = CreateUnitOfWork()) { return(uow.WalletRepository.Save(wallet)); } }
/// <summary> /// Base class for libsimba API Interaction implementations /// </summary> /// <param name="endpoint">The endpoint of the API</param> /// <param name="wallet">an optional <see cref="WalletBase" /> instance</param> protected internal SimbaBase(string endpoint, WalletBase wallet) { if (endpoint.EndsWith("/")) { Endpoint = endpoint; } else { Endpoint = endpoint + "/"; } Wallet = wallet; }
/// <summary> /// Internal constructor /// </summary> /// <param name="endpoint"></param> /// <param name="wallet"></param> protected internal SimbaChain(string endpoint, WalletBase wallet) : base(endpoint, wallet) { }
public Guid Save([FromBody] WalletBase wallet) { return(WalletService.Save(wallet)); }