public async Task <ILimitReached> GetAsync(string clientId)
        {
            var entity = await _tableStorage.GetDataAsync(LimitReachedEntity.GeneratePk(),
                                                          LimitReachedEntity.GenerateRk(clientId));

            return(entity);
        }
        public async Task <IReadOnlyList <ILimitReached> > GetAllAsync()
        {
            var entities = await _tableStorage.GetDataAsync(LimitReachedEntity.GeneratePk());

            return(entities.ToList());
        }
 public Task RemoveAsync(string clientId)
 {
     return(_tableStorage.DeleteIfExistAsync(LimitReachedEntity.GeneratePk(),
                                             LimitReachedEntity.GenerateRk(clientId)));
 }
 public Task AddAsync(string clientId, double amount, double maxAmount, string asset)
 {
     return(_tableStorage.InsertOrReplaceAsync(LimitReachedEntity.Create(clientId, amount, maxAmount, asset)));
 }