コード例 #1
0
        public async Task <IRefund> AddAsync(string id, string clientId, string walletId, string feeClientId, string assetId, long siriusAssetId, decimal amount, decimal feeAmount)
        {
            var entity = RefundEntity.Create(id, clientId, walletId, feeClientId, assetId, siriusAssetId, amount, feeAmount);
            await _tableStorage.InsertOrReplaceAsync(entity);

            return(entity);
        }
コード例 #2
0
 public Task UpdateAsync(string clientId, string id, string state)
 {
     return(_tableStorage.MergeAsync(RefundEntity.GetPk(clientId), RefundEntity.GetRk(id), entity =>
     {
         entity.State = state;
         entity.UpdatedAt = DateTime.UtcNow;
         return entity;
     }));
 }
コード例 #3
0
 public async Task <IRefund> GetAsync(string clientId, string id)
 {
     return(await _tableStorage.GetDataAsync(RefundEntity.GetPk(clientId), RefundEntity.GetRk(id)));
 }