Пример #1
0
        public async Task <IEnumerable <Device> > DevicesGet(Func <Device, bool> Predicate)
        {
            var result = await _deviceDataEntity.Query(Predicate);

            Log.Debug($"Devices got - N. {result.ToList().Count}");
            return(result);
        }
Пример #2
0
        public async Task <IEnumerable <Consumer> > ConsumerGet(Func <Consumer, bool> Predicate)
        {
            var result = await _consumerDataEntity.Query(Predicate);

            Log.Debug($"Consumers got - N. {result.ToList().Count}");
            return(result);
        }