public async Task InsertAsync(IndexPrice indexPrice) { var entity = new IndexPriceEntity(GetPartitionKey(), GetRowKey(indexPrice.Name)); Mapper.Map(indexPrice, entity); await _storage.InsertAsync(entity); }
public async Task <IndexPrice> GetByIndexAsync(string indexName) { IndexPriceEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey(indexName)); return(Mapper.Map <IndexPrice>(entity)); }