예제 #1
0
        public async Task <int> GetUsersCount(string searchString = null)
        {
            var parts = GetPartsFromString(searchString);

            return(await _usersQuery.GetCount(new UsersQueryParam { Part1 = parts[0], Part2 = parts[1] }));
        }
예제 #2
0
 public async Task <int> GetGoodsCount(long userId, decimal?amountMin = null, decimal?amountMax = null)
 {
     return(await _goodsQuery.GetCount(userId, new GoodsQueryParam { AmountMin = amountMin, AmountMax = amountMax }));
 }