Example #1
0
        public async Task <ApplicationUser> SingleAsync(
            Expression <Func <UserInfo, bool> > express,
            Func <IQueryable <UserInfo>, IIncludableQueryable <UserInfo, object> > include = null)
        {
            var spec = Specification <UserInfo> .Eval(express);

            var entity = await adminManage.SingleAsync(spec);

            return(entity.MapTo <ApplicationUser>());
        }