Exemple #1
0
 public async Task <Balance> GetAsync(Guid ofUserId)
 {
     return(new Balance(
                ofUserId,
                await _spendingRepository.GetSpendingOfUser(new GetSpendingOfUser {
         UserId = ofUserId
     })
                ));
 }
Exemple #2
0
 public async Task <decimal> HandleAsync(GetSpendingOfUser query)
 {
     return(await _repository.GetSpendingOfUser(query));
 }