Beispiel #1
0
        public async Task UpdateAsync(IMarginAsset marginAsset)
        {
            await _marginAssetTable.MergeAsync(GetPartitionKey(), GetRowKey(marginAsset.Id), x =>
            {
                Mapper.Map(marginAsset, x);

                return(x);
            });
        }
Beispiel #2
0
        public async Task AddAsync(IMarginAsset marginAsset)
        {
            var entity = Mapper.Map <MarginAssetEntity>(marginAsset);

            entity.PartitionKey = GetPartitionKey();
            entity.RowKey       = GetRowKey(marginAsset.Id);

            await _marginAssetTable.InsertAsync(entity);
        }
 public async Task UpdateAsync(IMarginAsset marginAsset)
 {
     await _marginAssetRepository.UpdateAsync(marginAsset);
 }
        public async Task <IMarginAsset> AddAsync(IMarginAsset marginAsset)
        {
            await _marginAssetRepository.AddAsync(marginAsset);

            return(marginAsset);
        }