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