예제 #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));
 }