public async Task <bool> GetUserAgreementAsync(string clientId) { var key = EthererumPendingActionEntity.UserAgreementKey(clientId); var agreement = await _tableStorage.GetDataAsync(key, key); return(agreement != null); }
public async Task CompleteAsync(string clientId, string operationId) { var entity = EthererumPendingActionEntity.CreateCompleted(clientId, operationId); await _tableStorage.InsertAsync(entity); await _tableStorage.DeleteIfExistAsync(clientId, operationId); }
public async Task SetUserAgreementAsync(string clientId) { var entity = EthererumPendingActionEntity.CreateUserAgreement(clientId); await _tableStorage.InsertAsync(entity); }