Esempio n. 1
0
        public async Task <List <ApplicationUser> > QueryAsync(
            Expression <Func <UserInfo, bool> > express = null,
            Func <IQueryable <UserInfo>, IIncludableQueryable <UserInfo, object> > include = null)
        {
            var spec = express == null ? null : Specification <UserInfo> .Eval(express);

            var entities = await adminManage.QueryAsync(spec) as IEnumerable <UserInfo>;

            return(entities.MapToList <ApplicationUser>());
        }