示例#1
0
        public long Count(UserEntity userEntity, SearchAdminEntity searchAdminEntity)
        {
            if (searchAdminEntity == null)
            {
                searchAdminEntity = new SearchAdminEntity();
            }
            IQueryable <Admin> admins = IMSContext.Admins;

            admins = searchAdminEntity.ApplyTo(admins);
            return(admins.Count());
        }
示例#2
0
        public List <AdminEntity> Get(UserEntity userEntity, SearchAdminEntity searchAdminEntity)
        {
            if (searchAdminEntity == null)
            {
                searchAdminEntity = new SearchAdminEntity();
            }
            IQueryable <Admin> admins = IMSContext.Admins;

            admins = searchAdminEntity.ApplyTo(admins);
            admins = searchAdminEntity.SkipAndTake(admins);
            return(admins.ToList().Select(a => new AdminEntity(a)).ToList());
        }
示例#3
0
 public List <AdminEntity> Get(SearchAdminEntity searchAdminEntity)
 {
     return(AdminService.Get(UserEntity, searchAdminEntity));
 }
示例#4
0
 public long Count(SearchAdminEntity searchAdminEntity)
 {
     return(AdminService.Count(UserEntity, searchAdminEntity));
 }