public async Task <IClientAccrual> Create(string accrualPeriodId, string clientId, string assetId, decimal tradeVolume, decimal bonus) { var entity = ClientAccrualEntity.Create(accrualPeriodId, clientId, assetId, tradeVolume, bonus); await _storage.InsertAsync(entity); return(entity); }
public async Task <IClientAccrual> GetClientAccrual(string accrualPeriodId, string asset) { return(await _storage.GetDataAsync(ClientAccrualEntity.GetId(accrualPeriodId, asset))); }