Beispiel #1
0
        public async Task <bool> IsExist(Expression <Func <TypeModuleModel, bool> > predicate)
        {
            var data = await _tmr.Find(predicate).FirstOrDefaultAsync();

            if (data == null)
            {
                return(false);
            }
            return(true);
        }
        public async Task <bool> IsExist(Expression <Func <TypeModuleModel, bool> > predicate)
        {
            var count = await _tmr.Find(predicate).CountAsync();

            if (count > 0)
            {
                return(true);
            }
            return(false);
        }