Ejemplo n.º 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());
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 3
0
 public List <AdminEntity> Get(SearchAdminEntity searchAdminEntity)
 {
     return(AdminService.Get(UserEntity, searchAdminEntity));
 }
Ejemplo n.º 4
0
 public long Count(SearchAdminEntity searchAdminEntity)
 {
     return(AdminService.Count(UserEntity, searchAdminEntity));
 }