Beispiel #1
0
        public async Task <IEnumerable <UserDTO> > GetUsers(string searchString)
        {
            var parts = GetPartsFromString(searchString);

            return(await _usersQuery.Get(new UsersQueryParam { Part1 = parts[0], Part2 = parts[1] }));
        }
Beispiel #2
0
 public async Task <IEnumerable <GoodDTO> > GetGoods(long userId, decimal?amountMin = null, decimal?amountMax = null)
 {
     return(await _goodsQuery.Get(userId, new GoodsQueryParam { AmountMin = amountMin, AmountMax = amountMax }));
 }